Update azure pipelines config to test all versions of django supported

This commit is contained in:
Garret Wassermann 2021-10-17 23:34:23 -04:00
parent 751459e5c5
commit 0be0e279b7
3 changed files with 30 additions and 6 deletions

View File

@ -10,16 +10,36 @@ pool:
vmImage: ubuntu-latest vmImage: ubuntu-latest
strategy: strategy:
matrix: matrix:
Python36: Python36Django22:
PYTHON_VERSION: '3.6' PYTHON_VERSION: '3.6'
Python37: DJANGO_VERSION: '22'
Python37Django22:
PYTHON_VERSION: '3.7' PYTHON_VERSION: '3.7'
Python38: DJANGO_VERSION: '22'
Python38Django22:
PYTHON_VERSION: '3.8' PYTHON_VERSION: '3.8'
Python39: DJANGO_VERSION: '22'
Python39Django22:
PYTHON_VERSION: '3.9' PYTHON_VERSION: '3.9'
Python310: DJANGO_VERSION: '22'
Python310Django22:
PYTHON_VERSION: '3.10' PYTHON_VERSION: '3.10'
DJANGO_VERSION: '22'
Python36Django32:
PYTHON_VERSION: '3.6'
DJANGO_VERSION: '32'
Python37Django32:
PYTHON_VERSION: '3.7'
DJANGO_VERSION: '32'
Python38Django32:
PYTHON_VERSION: '3.8'
DJANGO_VERSION: '32'
Python39Django32:
PYTHON_VERSION: '3.9'
DJANGO_VERSION: '32'
Python310Django32:
PYTHON_VERSION: '3.10'
DJANGO_VERSION: '32'
maxParallel: 1 maxParallel: 1
steps: steps:
@ -46,7 +66,7 @@ steps:
- script: | - script: |
python -m pip install --upgrade pip setuptools wheel python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt pip install -c constraint-Django$(DJANGO_VERSION).txt -r requirements.txt
pip install unittest-xml-reporting pip install unittest-xml-reporting
displayName: 'Install prerequisites' displayName: 'Install prerequisites'

2
constraints-Django22.txt Normal file
View File

@ -0,0 +1,2 @@
Django >=2.2,<3

2
constraints-Django32.txt Normal file
View File

@ -0,0 +1,2 @@
Django >=3.2,<4