Skip to content

Commit

Permalink
Run lints only once, not with all Python versions
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Jan 31, 2025
1 parent 8519a09 commit 8a261dd
Showing 1 changed file with 15 additions and 3 deletions.
18 changes: 15 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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
Expand Down

0 comments on commit 8a261dd

Please sign in to comment.