Skip to content

Commit

Permalink
Update azure pipelines config to test all versions of django supported
Browse files Browse the repository at this point in the history
  • Loading branch information
gwasser committed Oct 18, 2021
1 parent 751459e commit 0be0e27
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 6 deletions.
32 changes: 26 additions & 6 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,36 @@ pool:
vmImage: ubuntu-latest
strategy:
matrix:
Python36:
Python36Django22:
PYTHON_VERSION: '3.6'
Python37:
DJANGO_VERSION: '22'
Python37Django22:
PYTHON_VERSION: '3.7'
Python38:
DJANGO_VERSION: '22'
Python38Django22:
PYTHON_VERSION: '3.8'
Python39:
DJANGO_VERSION: '22'
Python39Django22:
PYTHON_VERSION: '3.9'
Python310:
DJANGO_VERSION: '22'
Python310Django22:
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

steps:
Expand All @@ -46,7 +66,7 @@ steps:
- script: |
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
displayName: 'Install prerequisites'

Expand Down
2 changes: 2 additions & 0 deletions constraints-Django22.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Django >=2.2,<3

2 changes: 2 additions & 0 deletions constraints-Django32.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Django >=3.2,<4

0 comments on commit 0be0e27

Please sign in to comment.