Skip to content

Commit

Permalink
Add a test against the latest version of ruff available
Browse files Browse the repository at this point in the history
This is a test added to the matrix of tests run by CI, but marked as
`continue-on-error` so that the full suite does not fail if this test
fails. The purpose is to signal that a later version of ruff may exist
that causes new linting/formatting failures, but allowing the dev team
to manually upgrade to the new version.
  • Loading branch information
waxlamp committed Oct 22, 2024
1 parent a9f549a commit a8f01d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/backend-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
tox-env: [lint, type, test, check-migrations]
tox-env: [lint, type, test, check-migrations, ruff-latest]
services:
postgres:
image: postgres:latest
Expand Down Expand Up @@ -48,6 +48,7 @@ jobs:
pip install --upgrade pip
pip install tox
- name: Run tests
continue-on-error: ${{ matrix.tox-env == 'ruff-latest' }}
run: |
tox -e ${{ matrix.tox-env }}
env:
Expand Down
10 changes: 10 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,16 @@ commands =
ruff check --fix-only
ruff format

[testenv:ruff-latest]
package = skip
ignore_errors = True
deps =
ruff
commands =
ruff -V
ruff check
ruff format --check

[testenv:type]
deps =
mypy
Expand Down

0 comments on commit a8f01d1

Please sign in to comment.