Skip to content

Commit

Permalink
Update linting runners to 3.10 and using poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
jleclanche committed Feb 11, 2022
1 parent 8724205 commit f726ad5
Showing 1 changed file with 19 additions and 15 deletions.
34 changes: 19 additions & 15 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,37 +20,41 @@ jobs:
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install pytest .
- name: Install poetry
run: python -m pip install poetry
- name: Install application
run: poetry install
- name: Test with pytest
run: pytest
run: poetry run pytest

lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: python -m pip install flake8 isort tan
python-version: "3.10"
- name: Install poetry
run: python -m pip install poetry
- name: Install application
run: poetry install
- name: Check for flake8 issues
run: flake8 .
run: poetry run flake8 .
- name: Check code formatting with Black
run: tan . --check
run: poetry run tan . --check
- name: Check import ordering with isort
run: isort . --check --diff
run: poetry run isort . --check --diff

mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: 3.9
- name: Install dependencies
run: python -m pip install mypy
python-version: "3.10"
- name: Install poetry
run: python -m pip install poetry
- name: Install application
run: poetry install
- name: Check using mypy
run: mypy --ignore-missing-imports bna
run: poetry run mypy bna

0 comments on commit f726ad5

Please sign in to comment.