99 strategy :
1010 fail-fast : false
1111 matrix :
12- python-version : ['3.9', '3.10', '3.11', '3.12', '3.13']
13- django-version : ['4.2', '5.0', '5.1']
12+ python-version : ['3.9','3.10', '3.11', '3.12', '3.13']
13+ django-version : ['4.2', '5.0', '5.1', '5.2', 'main' ]
1414 os : [
1515 ubuntu-latest,
1616 ]
@@ -19,44 +19,14 @@ jobs:
1919 django-version : ' 5.0'
2020 - python-version : ' 3.9'
2121 django-version : ' 5.1'
22+ - python-version : ' 3.9'
23+ django-version : ' 5.2'
24+ - python-version : ' 3.9'
25+ django-version : ' main'
2226 - python-version : ' 3.10'
23- django-version : ' 5.0'
24- - python-version : ' 3.10'
25- django-version : ' 5.1'
26-
27- steps :
28- - uses : actions/checkout@v5
29- - name : Set up Python ${{ matrix.python-version }}
30-
31- uses : actions/setup-python@v6
32- with :
33- python-version : ${{ matrix.python-version }}
34- - name : Install dependencies
35- run : |
36- python -m pip install --upgrade pip
37- pip install -U Django==${{ matrix.django-version }} coverage setuptools
38- python setup.py install
39-
40- - name : Run coverage
41- run : coverage run tests/settings.py
42-
43- - name : Upload Coverage to Codecov
44- uses : codecov/codecov-action@v5
45-
46-
47- unit-tests-future-versions :
48- # Runs for all Django/Python versions which are not yet supported
49- runs-on : ${{ matrix.os }}
50- strategy :
51- fail-fast : false
52- matrix :
53- python-version : ['3.12', '3.13']
54- django-version : [
55- ' https://github.com/django/django/archive/main.tar.gz'
56- ]
57- os : [
58- ubuntu-latest,
59- ]
27+ django-version : ' main'
28+ - python-version : ' 3.11'
29+ django-version : ' main'
6030
6131 steps :
6232 - uses : actions/checkout@v5
@@ -68,12 +38,17 @@ jobs:
6838 - name : Install dependencies
6939 run : |
7040 python -m pip install --upgrade pip
71- pip install ${{ matrix.django-version }} coverage setuptools
41+ if [ "${{ matrix.django-version }}" = "5.2" ]; then
42+ pip install -U "Django>=5.2a,<6.0" coverage setuptools
43+ elif [ "${{ matrix.django-version }}" = "main" ]; then
44+ pip install -U https://github.com/django/django/archive/main.tar.gz coverage setuptools
45+ else
46+ pip install -U Django==${{ matrix.django-version }} coverage setuptools
47+ fi
7248 python setup.py install
7349
7450 - name : Run coverage
7551 run : coverage run tests/settings.py
76- continue-on-error : true
7752
7853 - name : Upload Coverage to Codecov
7954 uses : codecov/codecov-action@v5
0 commit comments