Skip to content

Commit 2cd910b

Browse files
committed
Run online tests only once per OS
We do not need to run all online tests on all OSes adn Python combinations, but just once for sanity on each OS. Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
1 parent f4bf8a9 commit 2cd910b

File tree

1 file changed

+32
-8
lines changed

1 file changed

+32
-8
lines changed

azure-pipelines.yml

+32-8
Original file line numberDiff line numberDiff line change
@@ -15,66 +15,90 @@ jobs:
1515
test_suites:
1616
all: make check
1717

18+
- template: etc/ci/azure-posix.yml
19+
parameters:
20+
job_name: online_ubuntu24_cpython
21+
image_name: ubuntu-24.04
22+
python_versions: ['3.10']
23+
test_suites:
24+
all: venv/bin/pytest -n 2 -vvs -m 'online'
25+
26+
- template: etc/ci/azure-win.yml
27+
parameters:
28+
job_name: online_win2022_cpython
29+
image_name: windows-2022
30+
python_versions: ['3.10']
31+
test_suites:
32+
all: venv\Scripts\pytest -n 2 -vvs -m 'online'
33+
34+
- template: etc/ci/azure-posix.yml
35+
parameters:
36+
job_name: online_macos14_cpython
37+
image_name: macOS-14
38+
python_versions: ['3.10']
39+
test_suites:
40+
all: venv/bin/pytest -n 2 -vvs -m 'online'
41+
1842
- template: etc/ci/azure-posix.yml
1943
parameters:
2044
job_name: ubuntu22_cpython
2145
image_name: ubuntu-22.04
2246
python_versions: ['3.9', '3.10', '3.11', '3.12']
2347
test_suites:
24-
all: venv/bin/pytest -n 2 -vvs
48+
all: venv/bin/pytest -n 2 -vvs -m 'not online'
2549

2650
- template: etc/ci/azure-posix.yml
2751
parameters:
2852
job_name: ubuntu24_cpython
2953
image_name: ubuntu-24.04
3054
python_versions: ['3.9', '3.10', '3.11', '3.12']
3155
test_suites:
32-
all: venv/bin/pytest -n 2 -vvs
56+
all: venv/bin/pytest -n 2 -vvs -m 'not online'
3357

3458
- template: etc/ci/azure-posix.yml
3559
parameters:
3660
job_name: macos13_cpython
3761
image_name: macOS-13
3862
python_versions: ['3.9', '3.10', '3.11', '3.12']
3963
test_suites:
40-
all: venv/bin/pytest -n 2 -vvs
64+
all: venv/bin/pytest -n 2 -vvs -m 'not online'
4165

4266
- template: etc/ci/azure-posix.yml
4367
parameters:
4468
job_name: macos14_cpython
4569
image_name: macOS-14
4670
python_versions: ['3.9', '3.10', '3.11', '3.12']
4771
test_suites:
48-
all: venv/bin/pytest -n 2 -vvs
72+
all: venv/bin/pytest -n 2 -vvs -m 'not online'
4973

5074
- template: etc/ci/azure-posix.yml
5175
parameters:
5276
job_name: macos15_cpython
5377
image_name: macOS-15
5478
python_versions: ['3.9', '3.10', '3.11', '3.12']
5579
test_suites:
56-
all: venv/bin/pytest -n 2 -vvs
80+
all: venv/bin/pytest -n 2 -vvs -m 'not online'
5781

5882
- template: etc/ci/azure-win.yml
5983
parameters:
6084
job_name: win2019_cpython
6185
image_name: windows-2019
6286
python_versions: ['3.9', '3.10', '3.11', '3.12']
6387
test_suites:
64-
all: venv\Scripts\pytest -n 2 -vvs
88+
all: venv\Scripts\pytest -n 2 -vvs -m 'not online'
6589

6690
- template: etc/ci/azure-win.yml
6791
parameters:
6892
job_name: win2022_cpython
6993
image_name: windows-2022
7094
python_versions: ['3.9', '3.10', '3.11', '3.12']
7195
test_suites:
72-
all: venv\Scripts\pytest -n 2 -vvs
96+
all: venv\Scripts\pytest -n 2 -vvs -m 'not online'
7397

7498
- template: etc/ci/azure-win.yml
7599
parameters:
76100
job_name: win2025_cpython
77101
image_name: windows-2025
78102
python_versions: ['3.9', '3.10', '3.11', '3.12']
79103
test_suites:
80-
all: venv\Scripts\pytest -n 2 -vvs
104+
all: venv\Scripts\pytest -n 2 -vvs -m 'not online'

0 commit comments

Comments
 (0)