Passing CI checks #2149
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: Code quality | |
on: [push] | |
jobs: | |
isort: | |
name: Import sorting (isort) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install "pip<24" -U | |
pip install -r requirements/ci.txt | |
- uses: isort/[email protected] | |
with: | |
sortPaths: "src" | |
configuration: '--check-only --diff' | |
black: | |
name: Code formatting (black) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install "pip<24" -U | |
pip install -r requirements/ci.txt | |
- name: Run black | |
run: | | |
black --check src | |
flake8: | |
name: Code style (flake8) | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: Install dependencies | |
run: | | |
pip install "pip<24" -U | |
pip install -r requirements/ci.txt | |
- name: Run flake8 | |
run: | | |
flake8 src --ignore=E501,F405,W503,F401 |