From 0be0e279b78512beaf26219280f92d1d25a17b9c Mon Sep 17 00:00:00 2001 From: Garret Wassermann Date: Sun, 17 Oct 2021 23:34:23 -0400 Subject: [PATCH] Update azure pipelines config to test all versions of django supported --- azure-pipelines.yml | 32 ++++++++++++++++++++++++++------ constraints-Django22.txt | 2 ++ constraints-Django32.txt | 2 ++ 3 files changed, 30 insertions(+), 6 deletions(-) create mode 100644 constraints-Django22.txt create mode 100644 constraints-Django32.txt diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 780939d6..851972ab 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -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: @@ -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' diff --git a/constraints-Django22.txt b/constraints-Django22.txt new file mode 100644 index 00000000..1a728bf4 --- /dev/null +++ b/constraints-Django22.txt @@ -0,0 +1,2 @@ +Django >=2.2,<3 + diff --git a/constraints-Django32.txt b/constraints-Django32.txt new file mode 100644 index 00000000..0a12b5b3 --- /dev/null +++ b/constraints-Django32.txt @@ -0,0 +1,2 @@ +Django >=3.2,<4 +