Skip to content

Commit 5bbfbb7

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

File tree

3 files changed

+31
-19
lines changed

3 files changed

+31
-19
lines changed

.github/workflows/test.yml

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,26 @@ name: Test
33
on: [push, pull_request]
44

55
jobs:
6-
build:
7-
name: build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
6+
test:
7+
name: test with Python ${{ matrix.python-version }} and Django ${{ matrix.django-version }}
88
runs-on: ubuntu-latest
99
strategy:
1010
fail-fast: false
1111
max-parallel: 5
1212
matrix:
13-
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
14-
django-version: ['3.2', '4.0', '4.2', '5.0', '5.1']
13+
python-version:
14+
- '3.8'
15+
- '3.9'
16+
- '3.10'
17+
- '3.11'
18+
- '3.12'
19+
django-version:
20+
- '3.2'
21+
- '4.0'
22+
- '4.2'
23+
- '5.0'
24+
- '5.1'
25+
- 'main'
1526
exclude:
1627
- python-version: '3.11'
1728
django-version: '3.2'
@@ -58,5 +69,6 @@ jobs:
5869
- name: Tox tests
5970
run: uv run --only-dev tox -v
6071
env:
72+
TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }}
6173
DJANGO: ${{ matrix.django-version }}
6274
TEST_WITH_POSTGRES: 1

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ dev = [
5151
"setuptools-scm>=8.1.0",
5252
"wheel>=0.44.0",
5353
"tox-uv>=1.11.2",
54-
"tox-gh-actions>=3.2.0",
54+
"tox-gh>=1.4.1",
5555
"ruff>=0.6.2",
5656
"twine>=5.1.1",
5757
]

tox.ini

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,22 +9,22 @@ envlist =
99
check
1010
skipsdist = True
1111

12-
[gh-actions]
12+
[gh]
1313
python =
14-
3.8: py38
15-
3.9: py39
16-
3.10: py310, lint, check
17-
3.11: py311
18-
3.12: py312
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
1919

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
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
2828

2929
[testenv]
3030
deps =

0 commit comments

Comments
 (0)