@@ -4,15 +4,23 @@ on: [push, pull_request]
44
55jobs :
66 unit-tests :
7+ # Runs for all supported Django/Python versions
78 runs-on : ${{ matrix.os }}
89 strategy :
910 fail-fast : false
1011 matrix :
1112 python-version : ['3.7', '3.8', '3.9', '3.10']
12- django-version : ['2.2', '3.1', '3.2']
13+ django-version : ['2.2', '3.1', '3.2', '4.0' ]
1314 os : [
1415 ubuntu-20.04,
1516 ]
17+ exclude :
18+ - python-version : ' 3.7'
19+ django-version : ' 4.0'
20+ - python-version : ' 3.10'
21+ django-version : ' 2.2'
22+ - python-version : ' 3.10'
23+ django-version : ' 3.1'
1624
1725 steps :
1826 - uses : actions/checkout@v1
2432 - name : Install dependencies
2533 run : |
2634 python -m pip install --upgrade pip
27- pip install django ==${{ matrix.django-version }} coverage
35+ pip install Django ==${{ matrix.django-version }} coverage
2836 python setup.py install
2937
3038 - name : Run coverage
@@ -33,12 +41,18 @@ jobs:
3341 - name : Upload Coverage to Codecov
3442 uses : codecov/codecov-action@v1
3543
36- unit-tests-dj4 :
44+
45+ unit-tests-future-versions :
46+ # Runs for all Django/Python versions which are not yet supported
3747 runs-on : ${{ matrix.os }}
3848 strategy :
3949 fail-fast : false
4050 matrix :
4151 python-version : ['3.8', '3.9', '3.10']
52+ django-version : [
53+ ' Django==4.1' ,
54+ ' https://github.com/django/django/archive/main.tar.gz'
55+ ]
4256 os : [
4357 ubuntu-20.04,
4458 ]
@@ -53,11 +67,12 @@ jobs:
5367 - name : Install dependencies
5468 run : |
5569 python -m pip install --upgrade pip
56- pip install "django>=4.0,<4.1" coverage
70+ pip install ${{ matrix.django-version }} coverage
5771 python setup.py install
5872
5973 - name : Run coverage
6074 run : coverage run setup.py test
75+ continue-on-error : true
6176
6277 - name : Upload Coverage to Codecov
6378 uses : codecov/codecov-action@v1
0 commit comments