Skip to content

Commit 57c7e00

Browse files
authored
Test against Django 4.2, 5.2, and 6.0 (#1)
1 parent a568762 commit 57c7e00

File tree

4 files changed

+179
-2
lines changed

4 files changed

+179
-2
lines changed

.github/workflows/tests.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
jobs:
1010
test:
1111
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
django-version: ["django42", "django52", "django60"]
1215

1316
services:
1417
postgres:
@@ -41,4 +44,4 @@ jobs:
4144
run: uv sync
4245

4346
- name: Run tests
44-
run: uv run pytest
47+
run: uv run tox -e ${{ matrix.django-version }}

pyproject.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ dev = [
1313
"psycopg>=3.3.3",
1414
"pytest>=8.0",
1515
"pytest-django>=4.9",
16+
"tox>=4.49.0",
17+
"tox-uv>=1.33.1",
1618
]
1719

1820
[tool.pytest.ini_options]

tox.ini

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[tox]
2+
env_list = django42, django52, django60
3+
4+
[testenv]
5+
deps =
6+
dj-database-url>=3.1.2
7+
psycopg>=3.3.3
8+
pytest>=8.0
9+
pytest-django>=4.9
10+
django42: django>=4.2,<4.3
11+
django52: django>=5.2,<5.3
12+
django60: django>=6.0,<6.1
13+
commands = pytest {posargs}

uv.lock

Lines changed: 160 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)