Skip to content

Commit

Permalink
migrate from tox-gh-actions to tox-gh
Browse files Browse the repository at this point in the history
  • Loading branch information
shimizukawa committed Nov 14, 2024
1 parent d3c9b37 commit 5bbfbb7
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 19 deletions.
20 changes: 16 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,26 @@ name: Test
on: [push, pull_request]

jobs:
build:
name: build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
test:
name: test with Python ${{ matrix.python-version }} and Django ${{ matrix.django-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
max-parallel: 5
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
django-version: ['3.2', '4.0', '4.2', '5.0', '5.1']
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
django-version:
- '3.2'
- '4.0'
- '4.2'
- '5.0'
- '5.1'
- 'main'
exclude:
- python-version: '3.11'
django-version: '3.2'
Expand Down Expand Up @@ -58,5 +69,6 @@ jobs:
- name: Tox tests
run: uv run --only-dev tox -v
env:
TOX_GH_MAJOR_MINOR: ${{ matrix.python-version }}
DJANGO: ${{ matrix.django-version }}
TEST_WITH_POSTGRES: 1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ dev = [
"setuptools-scm>=8.1.0",
"wheel>=0.44.0",
"tox-uv>=1.11.2",
"tox-gh-actions>=3.2.0",
"tox-gh>=1.4.1",
"ruff>=0.6.2",
"twine>=5.1.1",
]
Expand Down
28 changes: 14 additions & 14 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -9,22 +9,22 @@ envlist =
check
skipsdist = True

[gh-actions]
[gh]
python =
3.8: py38
3.9: py39
3.10: py310, lint, check
3.11: py311
3.12: py312
3.8 = 3.8
3.9 = 3.9
3.10 = 3.10, lint, check
3.11 = 3.11
3.12 = 3.12

[gh-actions:env]
DJANGO =
3.2: dj32
4.0: dj40
4.2: dj42
5.0: dj50
5.1: dj51
main: djmain
; [gh-actions:env]
; DJANGO =
; 3.2: dj32
; 4.0: dj40
; 4.2: dj42
; 5.0: dj50
; 5.1: dj51
; main: djmain

[testenv]
deps =
Expand Down

0 comments on commit 5bbfbb7

Please sign in to comment.