Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

migrate from tox-gh-actions to tox-gh #160

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 9 additions & 22 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,32 +3,19 @@ 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 }}
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']
exclude:
- python-version: '3.11'
django-version: '3.2'
- python-version: '3.12'
django-version: '3.2'
- django-version: '5.0'
python-version: '3.8'
- django-version: '5.0'
python-version: '3.9'
- django-version: '5.1'
python-version: '3.8'
- django-version: '5.1'
python-version: '3.9'
- django-version: 'main'
python-version: '3.8'
- django-version: 'main'
python-version: '3.9'
python-version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'

services:
postgres:
Expand Down Expand Up @@ -58,5 +45,5 @@ jobs:
- name: Tox tests
run: uv run --only-dev tox -v
env:
DJANGO: ${{ matrix.django-version }}
TOX_GH_MAJOR_MINOR: ${{ matrix.python-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
31 changes: 11 additions & 20 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,30 +1,21 @@
[tox]
envlist =
py{38,39,310}-dj32
py{38,39,310,311,312}-dj40
py{38,39,310,311,312}-dj42
py{310,311,312}-dj50
py{310,311,312}-dj51
py38-dj{32,40,42}
py39-dj{32,40,42}
py310-dj{32,40,42,50,51}
py311-dj{ 40,42,50,51}
py312-dj{ 40,42,50,51}
lint
check
skipsdist = True

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

[gh-actions:env]
DJANGO =
3.2: dj32
4.0: dj40
4.2: dj42
5.0: dj50
5.1: dj51
main: djmain
3.8 = py38-dj32, py38-dj40, py38-dj42
3.9 = py39-dj32, py39-dj40, py39-dj42
3.10 = py310-dj32, py310-dj40, py310-dj42, py310-dj50, py310-dj51, lint, check
3.11 = py311-dj40, py311-dj42, py311-dj50, py311-dj51
3.12 = py312-dj40, py312-dj42, py312-dj50, py312-dj51

[testenv]
deps =
Expand Down