Merge pull request #51 from statnett/renovate/flake8-bugbear-24.x #298
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: tests | |
on: [push, pull_request] | |
jobs: | |
tests: | |
strategy: | |
matrix: | |
os: [ubuntu-latest] | |
python: ['3.9', '3.10', '3.11', '3.12'] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python }} | |
- name: install poetry | |
run: | | |
python -m pip install --upgrade pip wheel pipx | |
python -m pipx install poetry | |
- name: install dependencies | |
run: poetry install | |
- name: run tests | |
run: poetry run pytest | |
- name: run linter | |
run: | | |
poetry run flake8 . | |
poetry run black --check . | |
poetry run isort -c . |