Skip to content

Commit 002ecbd

Browse files
committed
Fixes #132
## Changes Made - Added Django 5.0, 5.1, 5.2, and main branch to test matrix - Included Python 3.10+ support for Django 5.x versions (requirement for Django 5.0+) - Updated GitHub Actions workflow to handle Django 5.2 alpha installations - Maintained backward compatibility with Django 4.2 and Python 3.9 - Added proper error handling for unstable Django main branch ## Test Matrix Coverage - **Django 4.2**: Python 3.9, 3.10, 3.11, 3.12 - **Django 5.0**: Python 3.10, 3.11, 3.12, 3.13 - **Django 5.1**: Python 3.10, 3.11, 3.12, 3.13 - **Django 5.2**: Python 3.10, 3.11, 3.12, 3.13 - **Django main**: Python 3.10, 3.11, 3.12, 3.13 (with error tolerance) Tested locally with `tox -e py310-dj51` and `tox -e py312-dj52`.
1 parent 29b2691 commit 002ecbd

File tree

2 files changed

+14
-8
lines changed

2 files changed

+14
-8
lines changed

.github/workflows/test.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
fail-fast: false
1111
matrix:
1212
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
13-
django-version: ['4.2', '5.0', '5.1']
13+
django-version: ['4.2', '5.0', '5.1', '5.2', 'main']
1414
os: [
1515
ubuntu-latest,
1616
]
@@ -19,10 +19,10 @@ jobs:
1919
django-version: '5.0'
2020
- python-version: '3.9'
2121
django-version: '5.1'
22-
- python-version: '3.10'
23-
django-version: '5.0'
24-
- python-version: '3.10'
25-
django-version: '5.1'
22+
- python-version: '3.9'
23+
django-version: '5.2'
24+
- python-version: '3.9'
25+
django-version: 'main'
2626

2727
steps:
2828
- uses: actions/checkout@v5
@@ -33,8 +33,14 @@ jobs:
3333
python-version: ${{ matrix.python-version }}
3434
- name: Install dependencies
3535
run: |
36-
python -m pip install --upgrade pip
37-
pip install -U Django==${{ matrix.django-version }} coverage setuptools
36+
python -m pip install --upgrade pip # ← INDENTED 4 SPACES
37+
if [ "${{ matrix.django-version }}" = "5.2" ]; then
38+
pip install -U "Django>=5.2a,<6.0" coverage setuptools
39+
elif [ "${{ matrix.django-version }}" = "main" ]; then
40+
pip install -U https://github.com/django/django/archive/main.tar.gz coverage setuptools
41+
else
42+
pip install -U Django==${{ matrix.django-version }} coverage setuptools
43+
fi
3844
python setup.py install
3945
4046
- name: Run coverage

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ envlist =
33
flake8
44
isort
55
py{39,310,311,312}-dj42
6-
py{311,312,313}-dj{50,51,52,main}
6+
py{310,311,312,313}-dj{50,51,52,main}
77

88
skip_missing_interpreters=True
99

0 commit comments

Comments
 (0)