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 b3760a9
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ on:
- main

jobs:
lint:
runs-on: ubuntu-24.04
steps:
- uses: actions/setup-python@v4
with:
python-version: "3.12"
- name: Do pre-commit checks (black, lint, mypy)
uses: akx/pre-commit-uv-action@v0.1.0

test:
runs-on: ubuntu-latest
strategy:
Expand All @@ -21,9 +30,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 b3760a9

Please sign in to comment.