Skip to content

Commit 63ffe0b

Browse files
committed
Improve test suite
Drop Python 3.6 Add Python 3.10 Test on newest Linux, macOS and Windows Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent 4bd581b commit 63ffe0b

1 file changed

Lines changed: 42 additions & 15 deletions

File tree

azure-pipelines.yml

Lines changed: 42 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
################################################################################
23
# We use Azure to run the full tests suites on multiple Python 3.x
34
# on multiple Windows, macOS and Linux versions all on 64 bits
@@ -6,27 +7,39 @@
67

78
jobs:
89

10+
################################################################################
11+
# These jobs are using VMs and Azure-provided Pythons 3.8
12+
################################################################################
13+
914
- template: etc/ci/azure-posix.yml
1015
parameters:
1116
job_name: ubuntu18_cpython
1217
image_name: ubuntu-18.04
13-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
18+
python_versions: ['3.7', '3.8', '3.9', '3.10']
1419
test_suites:
1520
all: venv/bin/pytest -n 2 -vvs
1621

1722
- template: etc/ci/azure-posix.yml
1823
parameters:
1924
job_name: ubuntu20_cpython
2025
image_name: ubuntu-20.04
21-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
26+
python_versions: ['3.7', '3.8', '3.9', '3.10']
27+
test_suites:
28+
all: venv/bin/pytest -n 2 -vvs
29+
30+
- template: etc/ci/azure-posix.yml
31+
parameters:
32+
job_name: ubuntu22_cpython
33+
image_name: ubuntu-22.04
34+
python_versions: ['3.7', '3.8', '3.9', '3.10']
2235
test_suites:
2336
all: venv/bin/pytest -n 2 -vvs
2437

2538
- template: etc/ci/azure-posix.yml
2639
parameters:
2740
job_name: macos1015_cpython
2841
image_name: macos-10.15
29-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
42+
python_versions: ['3.7', '3.8', '3.9', '3.10']
3043
test_suites:
3144
all: venv/bin/pytest -n 2 -vvs
3245

@@ -38,11 +51,19 @@ jobs:
3851
test_suites:
3952
all: venv/bin/pytest -n 2 -vvs
4053

54+
- template: etc/ci/azure-posix.yml
55+
parameters:
56+
job_name: macos12_cpython
57+
image_name: macos-12
58+
python_versions: ['3.7', '3.8', '3.9', '3.10']
59+
test_suites:
60+
all: venv/bin/pytest -n 2 -vvs
61+
4162
- template: etc/ci/azure-win.yml
4263
parameters:
4364
job_name: win2019_cpython
4465
image_name: windows-2019
45-
python_versions: ['3.6', '3.7', '3.8', '3.9', '3.10']
66+
python_versions: ['3.7', '3.8', '3.9', '3.10']
4667
test_suites:
4768
all: venv\Scripts\pytest -n 2 -vvs
4869

@@ -64,36 +85,42 @@ jobs:
6485
parameters:
6586
job_name: ubuntu20_test_all_supported_click_versions
6687
image_name: ubuntu-20.04
67-
python_versions: ['3.6', '3.7', '3.8', '3.9']
88+
python_versions: ['3.7', '3.8', '3.9', '3.10']
6889
test_suites:
69-
click_versions: for clk_ver in 8.0.1 7.1.2 7.1.1 7.1 6.7; do pip install click==$clk_ver; venv/bin/pytest -vvs tests/test_cliutils_progressbar.py; done
90+
click_versions: |
91+
for clk_ver in 8.1.3 8.1.2 8.1.1 8.1.0 8.0.4 8.0.2 8.0.3 8.0.1 7.1.2 7.1.1 7.1 6.7;
92+
do
93+
pip install click==$clk_ver;
94+
venv/bin/pytest -vvs tests/test_cliutils_progressbar.py;
95+
done
7096
7197
7298
################################################################################
73-
# Test using a plain pip install to get the latest of all wheels
99+
# Tests using a plain pip install to get the latest of all wheels
74100
################################################################################
75101

76102

77103
- template: etc/ci/azure-posix.yml
78104
parameters:
79105
job_name: ubuntu20_cpython_latest_from_pip
80106
image_name: ubuntu-20.04
81-
python_versions: ['3.6', '3.7', '3.8', '3.9']
107+
python_versions: ['3.7', '3.8', '3.9', '3.10']
82108
test_suites:
83-
all: venv/bin/pip install --force-reinstall --upgrade -e . && venv/bin/pytest -n 2 -vvs
109+
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e . && venv/bin/pytest -n 2 -vvs
110+
84111

85112
- template: etc/ci/azure-win.yml
86113
parameters:
87114
job_name: win2019_cpython_latest_from_pip
88115
image_name: windows-2019
89-
python_versions: ['3.6', '3.7', '3.8', '3.9']
116+
python_versions: ['3.7', '3.8', '3.9', '3.10']
90117
test_suites:
91-
all: venv\Scripts\pip install --force-reinstall --upgrade -e . && venv\Scripts\pytest -n 2 -vvs
118+
all: venv\Scripts\pip install --upgrade-strategy eager --force-reinstall --upgrade -e . && venv\Scripts\pytest -n 2 -vvs
92119

93120
- template: etc/ci/azure-posix.yml
94121
parameters:
95-
job_name: macos1015_cpython_latest_from_pip
96-
image_name: macos-10.15
97-
python_versions: ['3.6', '3.7', '3.8', '3.9']
122+
job_name: macos11_cpython_latest_from_pip
123+
image_name: macos-11
124+
python_versions: ['3.7', '3.8', '3.9', '3.10']
98125
test_suites:
99-
all: venv/bin/pip install --force-reinstall --upgrade -e . && venv/bin/pytest -n 2 -vvs
126+
all: venv/bin/pip install --upgrade-strategy eager --force-reinstall --upgrade -e . && venv/bin/pytest -n 2 -vvs

0 commit comments

Comments
 (0)