Skip to content

Commit

Permalink
build: Add tox rules and update ci matrix.
Browse files Browse the repository at this point in the history
Tox did not have the other python versions so we couldn't test locally
with those easily.  Also, we don't need to run the `docs`, `quality` and
`pii_check` on all versions. Running it on the latest version is
sufficient.
  • Loading branch information
feanil committed May 17, 2024
1 parent 6453cd8 commit 39ef21f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,15 @@ jobs:
matrix:
os: [ubuntu-20.04]
python-version: ['3.8', '3.11', '3.12']
toxenv: [quality, docs, pii_check, django42]
toxenv: [django42]
# Only run these other workflows on the latest python version we support.
include:
- python-version: '3.12'
toxenv: 'quality'
- python-version: '3.12'
toxenv: 'docs'
- python-version: '3.12'
toxenv: 'pii_check'

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py{38}-django{42}, quality, docs, pii_check
envlist = py{38,311,312}-django{42}, quality, docs, pii_check

[doc8]
ignore = D001
Expand Down

0 comments on commit 39ef21f

Please sign in to comment.