Merge pull request #38 from qoherent/format-workflow #58
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: flake8 Lint | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
flake8-lint: | |
runs-on: ubuntu-latest | |
name: Flake8 Lint | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
- name: Set up Python environment | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry lock --no-update | |
poetry install | |
- name: Check Black formatting | |
uses: psf/black@stable | |
with: | |
options: "--check --verbose" | |
src: "./" | |
- name: Check Isort formatting | |
uses: isort/isort-action@master | |
- name: Setup flake8 annotations | |
uses: rbialon/flake8-annotations@v1.1 | |
- name: Link and annotate with Flake8 | |
uses: py-actions/flake8@v2 |