Skip to content

Commit dc14a17

Browse files
Merge pull request #7 from BrightpathProgress/2026-package-update
Update tests to run against currently supported Python and Django
2 parents 2ae456d + b1d2f86 commit dc14a17

5 files changed

Lines changed: 725 additions & 545 deletions

File tree

.github/workflows/tests.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,22 @@
11
name: Tests
2-
on: [push]
2+
on:
3+
pull_request:
4+
push:
5+
branches:
6+
- master
37
jobs:
48
test:
59
name: Run tests
610
runs-on: ubuntu-latest
711
steps:
8-
- uses: actions/checkout@1.0.0
9-
- uses: excitedleigh/setup-nox@v2.0.0
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-python@v5
14+
with:
15+
python-version: |
16+
3.10
17+
3.11
18+
3.12
19+
3.13
20+
3.14
21+
- run: pip install nox
1022
- run: nox

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@ This means that you can efficiently show a list of all of the model instances th
1818
.. _django: https://djangoproject.com/
1919
.. _django-rules: https://github.com/dfunckt/django-rules
2020

21-
Bridgekeeper is tested on Django 3.2, 4.2 and 5.0 on all Python versions Django supports, and is licensed under the MIT License.
21+
Bridgekeeper is tested on Django 4.2, 5.2, and 6.0 on all supported Python versions, and is licensed under the MIT License.

noxfile.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,16 @@
55
nox.options.error_on_external_run = True
66

77

8-
@nox.session(python=("3.8", "3.9", "3.10", "3.11", "3.12"))
9-
@nox.parametrize("django", ("3.2", "4.2", "5.0"))
8+
@nox.session(python=("3.10", "3.11", "3.12", "3.13", "3.14"))
9+
@nox.parametrize("django", ("4.2", "5.2", "6.0"))
1010
def tests(session, django):
11-
if django == "5.0" and session.python in ("3.8", "3.9"):
11+
# Django 6.0 requires Python 3.12+
12+
if django == "6.0" and session.python in ("3.10", "3.11"):
1213
session.skip()
14+
major, minor = (int(x) for x in django.split("."))
1315
session.install("poetry")
14-
session.install(f"django>={django},<{django}.999")
15-
session.install("factory-boy>=2.9.2,<2.9.99999")
16+
session.install(f"django>={django},<{major}.{minor + 1}")
17+
session.install("factory-boy>=3,<4")
1618
session.run(
1719
"poetry",
1820
"install",
@@ -23,7 +25,7 @@ def tests(session, django):
2325
session.run("pytest")
2426

2527

26-
@nox.session(python="3.8")
28+
@nox.session(python="3.12")
2729
def docs(session):
2830
session.install("poetry")
2931
session.run(
@@ -42,7 +44,7 @@ def clean_docs(session):
4244
session.run("rm", "-rf", "docs/_build")
4345

4446

45-
@nox.session(python="3.8")
47+
@nox.session(python="3.12")
4648
def release_test(session):
4749
session.install("poetry", "twine")
4850
session.run(

0 commit comments

Comments
 (0)