Skip to content

Commit 150ee21

Browse files
committed
migrate from tox-gh-actions to tox-gh
1 parent 5bbfbb7 commit 150ee21

File tree

2 files changed

+11
-45
lines changed

2 files changed

+11
-45
lines changed

.github/workflows/test.yml

+1-26
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
test:
7-
name: test with Python ${{ matrix.python-version }} and Django ${{ matrix.django-version }}
7+
name: test with Python ${{ matrix.python-version }}
88
runs-on: ubuntu-latest
99
strategy:
1010
fail-fast: false
@@ -16,30 +16,6 @@ jobs:
1616
- '3.10'
1717
- '3.11'
1818
- '3.12'
19-
django-version:
20-
- '3.2'
21-
- '4.0'
22-
- '4.2'
23-
- '5.0'
24-
- '5.1'
25-
- 'main'
26-
exclude:
27-
- python-version: '3.11'
28-
django-version: '3.2'
29-
- python-version: '3.12'
30-
django-version: '3.2'
31-
- django-version: '5.0'
32-
python-version: '3.8'
33-
- django-version: '5.0'
34-
python-version: '3.9'
35-
- django-version: '5.1'
36-
python-version: '3.8'
37-
- django-version: '5.1'
38-
python-version: '3.9'
39-
- django-version: 'main'
40-
python-version: '3.8'
41-
- django-version: 'main'
42-
python-version: '3.9'
4319

4420
services:
4521
postgres:
@@ -70,5 +46,4 @@ jobs:
7046
run: uv run --only-dev tox -v
7147
env:
7248
TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }}
73-
DJANGO: ${{ matrix.django-version }}
7449
TEST_WITH_POSTGRES: 1

tox.ini

+10-19
Original file line numberDiff line numberDiff line change
@@ -1,30 +1,21 @@
11
[tox]
22
envlist =
3-
py{38,39,310}-dj32
4-
py{38,39,310,311,312}-dj40
5-
py{38,39,310,311,312}-dj42
6-
py{310,311,312}-dj50
7-
py{310,311,312}-dj51
3+
py38-dj{32,40,42}
4+
py39-dj{32,40,42}
5+
py310-dj{32,40,42,50,51}
6+
py311-dj{ 40,42,50,51}
7+
py312-dj{ 40,42,50,51}
88
lint
99
check
1010
skipsdist = True
1111

1212
[gh]
1313
python =
14-
3.8 = 3.8
15-
3.9 = 3.9
16-
3.10 = 3.10, lint, check
17-
3.11 = 3.11
18-
3.12 = 3.12
19-
20-
; [gh-actions:env]
21-
; DJANGO =
22-
; 3.2: dj32
23-
; 4.0: dj40
24-
; 4.2: dj42
25-
; 5.0: dj50
26-
; 5.1: dj51
27-
; main: djmain
14+
3.8 = py38-dj32, py38-dj40, py38-dj42
15+
3.9 = py39-dj32, py39-dj40, py39-dj42
16+
3.10 = py310-dj32, py310-dj40, py310-dj42, py310-dj50, py310-dj51, lint, check
17+
3.11 = py311-dj40, py311-dj42, py311-dj50, py311-dj51
18+
3.12 = py312-dj40, py312-dj42, py312-dj50, py312-dj51
2819

2920
[testenv]
3021
deps =

0 commit comments

Comments
 (0)