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
12 changes: 3 additions & 9 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,26 +22,20 @@ jobs:
matrix:
django-version:
- "4.2"
- "5.0"
- "5.1"
- "5.2"
python-version:
- "3.8"
- "3.9"
- "3.10"
- "3.11"
- "3.12"
- "3.13"
exclude:
# Django 5.0 is compatible with Python 3.10+
- python-version: "3.8"
django-version: "5.0"
- python-version: "3.9"
django-version: "5.0"
# Django 5.1 is compatible with Python 3.10+
- python-version: "3.8"
django-version: "5.1"
- python-version: "3.9"
django-version: "5.1"

django-version: "5.2"
steps:
- uses: actions/checkout@v4

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This application enables you to create and manage follows, blocks and bi-directi

## Requirements

Django 5.0 and 5.1 + Python 3.11 and Python 3.12 support added **>v1.9.6**
Django 4.2, 5.1, and 5.2 + Python 3.9, 3.10, 3.11, 3.12, and 3.13 support added **>v1.9.6**

Previously:

Expand Down
21 changes: 15 additions & 6 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,21 @@
# DJANGO_STABLE_VERSION should be set to the latest Django LTS version
# and should *not* appear in DJANGO_VERSIONS

DJANGO_STABLE_VERSION = "4.2"
DJANGO_VERSIONS = ["4.2", "5.0", "5.1", "main"]
DJANGO_STABLE_VERSION = "5.2"
DJANGO_VERSIONS = ["4.2", "5.1", "5.2", "main"]

# PYTHON_STABLE_VERSION should be set to the latest stable Python version
# and should *not* appear in PYTHON_VERSIONS

PYTHON_STABLE_VERSION = "3.11"
PYTHON_VERSIONS = ["3.8", "3.9", "3.10", "3.11", "3.12"]
PYTHON_STABLE_VERSION = "3.13"
PYTHON_VERSIONS = ["3.9", "3.10", "3.11", "3.12"]


INVALID_PYTHON_DJANGO_SESSIONS = [
("3.9", "5.1"),
("3.9", "5.2"),
]


nox.options.default_venv_backend = "uv|venv"
nox.options.reuse_existing_virtualenvs = True
Expand Down Expand Up @@ -41,8 +48,10 @@ def test_django_version(session: nox.Session, django: str) -> None:
@nox.session(python=PYTHON_VERSIONS, tags=["python"])
@nox.parametrize("django", [DJANGO_STABLE_VERSION])
def test_python_version(session: nox.Session, django: str) -> None:
if session.python == PYTHON_STABLE_VERSION:
session.skip()
if (session.python, django) in INVALID_PYTHON_DJANGO_SESSIONS:
session.skip(
f"Skipping invalid combination: Python {session.python} + Django {django}"
)

session.install(".[test]")
session.install(f"django~={django}.0")
Expand Down