Skip to content
Merged
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
18 changes: 15 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
name: Tests
on: [push]
on:
pull_request:
push:
branches:
- master
jobs:
test:
name: Run tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1.0.0
- uses: excitedleigh/setup-nox@v2.0.0
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: |
3.10
3.11
3.12
3.13
3.14
- run: pip install nox
- run: nox
2 changes: 1 addition & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,4 @@ This means that you can efficiently show a list of all of the model instances th
.. _django: https://djangoproject.com/
.. _django-rules: https://github.com/dfunckt/django-rules

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.
Bridgekeeper is tested on Django 4.2, 5.2, and 6.0 on all supported Python versions, and is licensed under the MIT License.
16 changes: 9 additions & 7 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,16 @@
nox.options.error_on_external_run = True


@nox.session(python=("3.8", "3.9", "3.10", "3.11", "3.12"))
@nox.parametrize("django", ("3.2", "4.2", "5.0"))
@nox.session(python=("3.10", "3.11", "3.12", "3.13", "3.14"))
@nox.parametrize("django", ("4.2", "5.2", "6.0"))
def tests(session, django):
if django == "5.0" and session.python in ("3.8", "3.9"):
# Django 6.0 requires Python 3.12+
if django == "6.0" and session.python in ("3.10", "3.11"):
session.skip()
major, minor = (int(x) for x in django.split("."))
session.install("poetry")
session.install(f"django>={django},<{django}.999")
session.install("factory-boy>=2.9.2,<2.9.99999")
session.install(f"django>={django},<{major}.{minor + 1}")
session.install("factory-boy>=3,<4")
session.run(
"poetry",
"install",
Expand All @@ -23,7 +25,7 @@ def tests(session, django):
session.run("pytest")


@nox.session(python="3.8")
@nox.session(python="3.12")
def docs(session):
session.install("poetry")
session.run(
Expand All @@ -42,7 +44,7 @@ def clean_docs(session):
session.run("rm", "-rf", "docs/_build")


@nox.session(python="3.8")
@nox.session(python="3.12")
def release_test(session):
session.install("poetry", "twine")
session.run(
Expand Down
Loading