Changes to support testing all currently production stable combinations

of Python and Django
This commit is contained in:
Christopher Broderick
2025-08-21 10:07:58 +01:00
parent 1ce4e8fb40
commit 53da99e565
2 changed files with 7 additions and 8 deletions

View File

@@ -13,6 +13,9 @@ jobs:
strategy:
matrix:
include:
# Explicitly include Python 3.9 only with Django 4.2
- python-version: "3.9"
django-version: "4.2"
# Explicitly include Python 3.13 only with Django 5.2
- python-version: "3.13"
django-version: "5.2"
@@ -39,11 +42,6 @@ jobs:
path: ~/.cache/pip
key: ${{ hashFiles('pyproject.toml') }}-${{ matrix.python-version }}-${{ matrix.django-version }}
- name: Override Django version with test version ${{ matrix.django-version }}
run: |
uv add "django~=${{ matrix.django-version }}"
uv run django-admin --version
- name: Install dependencies
run: |
python -m pip install --upgrade pip
@@ -57,6 +55,6 @@ jobs:
- name: Run tests
run: |
cd ${GITHUB_WORKSPACE} && uv run quicktest.py
cd ${GITHUB_WORKSPACE} && uv run --with django~=${{ matrix.django-version }} quicktest.py
env:
DJANGO_SETTINGS_MODULE: helpdesk.settings

View File

@@ -5,7 +5,7 @@ description = "Django-powered ticket tracker for your helpdesk"
authors = [
{name = "Ross Poulton", email = "ross@rossp.org"},
]
requires-python = ">=3.10"
requires-python = ">=3.9"
readme = "README.rst"
license = {text = "BSD3"}
keywords = ["django", "helpdesk", "django-helpdesk", "tickets", "incidents", "cases", "bugs", "track", "support"]
@@ -18,7 +18,8 @@ packages = [
{ include="helpdesk", from="." },
]
dependencies = [
"django>=4.2",
"django>=5; python_version>='3.10'",
"django<5; python_version<'3.10'",
"django-bootstrap4-form",
"celery",
"email-reply-parser",