Skip to content

Commit eb801db

Browse files
committed
build: Add tox rules and update ci matrix.
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.
1 parent 6453cd8 commit eb801db

File tree

2 files changed

+14
-3
lines changed

2 files changed

+14
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,20 @@ jobs:
1414
runs-on: ${{ matrix.os }}
1515
strategy:
1616
matrix:
17-
os: [ubuntu-20.04]
17+
os: [ 'ubuntu-20.04' ]
1818
python-version: ['3.8', '3.11', '3.12']
19-
toxenv: [quality, docs, pii_check, django42]
19+
toxenv: [ 'django42' ]
20+
# Only run these other workflows on the latest python version we support.
21+
include:
22+
- python-version: '3.12'
23+
toxenv: 'quality'
24+
os: 'ubuntu-20.04'
25+
- python-version: '3.12'
26+
toxenv: 'docs'
27+
os: 'ubuntu-20.04'
28+
- python-version: '3.12'
29+
toxenv: 'pii_check'
30+
os: 'ubuntu-20.04'
2031

2132
steps:
2233
- uses: actions/checkout@v4

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = py{38}-django{42}, quality, docs, pii_check
2+
envlist = py{38,311,312}-django{42}, quality, docs, pii_check
33

44
[doc8]
55
ignore = D001

0 commit comments

Comments
 (0)