Skip to content

Merge pull request #48 from statnett/renovate/flake8-bugbear-24.x #285

Merge pull request #48 from statnett/renovate/flake8-bugbear-24.x

Merge pull request #48 from statnett/renovate/flake8-bugbear-24.x #285

Workflow file for this run

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 .