diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 575b607..ef613e2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -5,6 +5,21 @@ on: - main jobs: + lint: + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v4 + with: + python-version: "3.11" # TODO: the current pylint version fails on py3.12 + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install poetry + poetry install + - name: Do pre-commit checks (black, lint, mypy) + run: poetry run docker/pre_commit_init.sh + test: runs-on: ubuntu-latest strategy: @@ -21,9 +36,6 @@ jobs: python -m pip install --upgrade pip pip install poetry poetry install - - name: Do pre-commit checks (black, lint, mypy) - run: | - poetry run docker/pre_commit_init.sh - name: Test with pytest run: | poetry run py.test -v