Skip to content

Commit 7cee895

Browse files
committed
💚 Use parallelised jobs in CI
1 parent c3ded77 commit 7cee895

File tree

5 files changed

+44
-44
lines changed

5 files changed

+44
-44
lines changed

‎.github/workflows/test_client_macos_nightlies.yml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
run: >-
3838
python -m pytest -x
3939
-m object_retrieval -c /dev/null -p no:warnings
40-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
40+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
4141
object_removal:
4242
runs-on: ubuntu-latest
4343
timeout-minutes: 30
@@ -62,7 +62,7 @@ jobs:
6262
run: >-
6363
python -m pytest -x
6464
-m object_removal -c /dev/null -p no:warnings
65-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
65+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
6666
dispatch_tests:
6767
runs-on: ubuntu-latest
6868
timeout-minutes: 30
@@ -86,7 +86,7 @@ jobs:
8686
run: >-
8787
python -m pytest -x
8888
-m dispatch -c /dev/null -p no:warnings
89-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
89+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
9090
run_tests_online:
9191
runs-on: ubuntu-latest
9292
timeout-minutes: 30
@@ -110,8 +110,8 @@ jobs:
110110
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
111111
run: >-
112112
python -m pytest -x
113-
-m run -m online -c /dev/null -p no:warnings
114-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
113+
-m "online and not api" -c /dev/null -p no:warnings
114+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
115115
run_tests_offline:
116116
runs-on: ubuntu-latest
117117
timeout-minutes: 30
@@ -135,7 +135,7 @@ jobs:
135135
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
136136
run: >-
137137
python -m pytest -x
138-
-m run -m offline -c /dev/null -p no:warnings
138+
-m "offline and not api" -c /dev/null -p no:warnings
139139
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
140140
config_tests:
141141
runs-on: ubuntu-latest
@@ -160,7 +160,7 @@ jobs:
160160
run: >-
161161
python -m pytest -x
162162
-m config -c /dev/null -p no:warnings
163-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
163+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
164164
executor_tests:
165165
runs-on: ubuntu-latest
166166
timeout-minutes: 30
@@ -232,4 +232,4 @@ jobs:
232232
run: >-
233233
python -m pytest -x
234234
-m local -c /dev/null -p no:warnings
235-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
235+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache

‎.github/workflows/test_client_ubuntu.yml‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ jobs:
4242
run: >-
4343
python -m pytest -x
4444
-m object_retrieval -c /dev/null -p no:warnings
45-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
45+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
4646
object_removal:
4747
runs-on: ubuntu-latest
4848
timeout-minutes: 30
@@ -67,7 +67,7 @@ jobs:
6767
run: >-
6868
python -m pytest -x
6969
-m object_removal -c /dev/null -p no:warnings
70-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
70+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
7171
dispatch_tests:
7272
runs-on: ubuntu-latest
7373
timeout-minutes: 30
@@ -91,7 +91,7 @@ jobs:
9191
run: >-
9292
python -m pytest -x
9393
-m dispatch -c /dev/null -p no:warnings
94-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
94+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
9595
run_tests_online:
9696
runs-on: ubuntu-latest
9797
timeout-minutes: 30
@@ -115,8 +115,8 @@ jobs:
115115
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
116116
run: >-
117117
python -m pytest -x
118-
-m run -m online -c /dev/null -p no:warnings
119-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
118+
-m "online and not api" -c /dev/null -p no:warnings
119+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
120120
run_tests_offline:
121121
runs-on: ubuntu-latest
122122
timeout-minutes: 30
@@ -140,7 +140,7 @@ jobs:
140140
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
141141
run: >-
142142
python -m pytest -x
143-
-m run -m offline -c /dev/null -p no:warnings
143+
-m "offline and not api" -c /dev/null -p no:warnings
144144
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
145145
config_tests:
146146
runs-on: ubuntu-latest
@@ -165,7 +165,7 @@ jobs:
165165
run: >-
166166
python -m pytest -x
167167
-m config -c /dev/null -p no:warnings
168-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
168+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
169169
executor_tests:
170170
runs-on: ubuntu-latest
171171
timeout-minutes: 30
@@ -237,4 +237,4 @@ jobs:
237237
run: >-
238238
python -m pytest -x
239239
-m local -c /dev/null -p no:warnings
240-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
240+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache

‎.github/workflows/test_client_ubuntu_nightlies.yml‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
run: >-
4141
python -m pytest -x
4242
-m object_retrieval -c /dev/null -p no:warnings
43-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
43+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
4444
object_removal:
4545
runs-on: ubuntu-latest
4646
timeout-minutes: 30
@@ -65,7 +65,7 @@ jobs:
6565
run: >-
6666
python -m pytest -x
6767
-m object_removal -c /dev/null -p no:warnings
68-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
68+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
6969
dispatch_tests:
7070
runs-on: ubuntu-latest
7171
timeout-minutes: 30
@@ -89,8 +89,8 @@ jobs:
8989
run: >-
9090
python -m pytest -x
9191
-m dispatch -c /dev/null -p no:warnings
92-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
93-
run_tests_online:
92+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
93+
online_online:
9494
runs-on: ubuntu-latest
9595
timeout-minutes: 30
9696
steps:
@@ -113,9 +113,9 @@ jobs:
113113
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
114114
run: >-
115115
python -m pytest -x
116-
-m run -m online -c /dev/null -p no:warnings
117-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
118-
run_tests_offline:
116+
-m "online and not api" -c /dev/null -p no:warnings
117+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
118+
offline_tests:
119119
runs-on: ubuntu-latest
120120
timeout-minutes: 30
121121
steps:
@@ -138,7 +138,7 @@ jobs:
138138
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
139139
run: >-
140140
python -m pytest -x
141-
-m run -m offline -c /dev/null -p no:warnings
141+
-m "offline and not api" -c /dev/null -p no:warnings
142142
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
143143
config_tests:
144144
runs-on: ubuntu-latest
@@ -163,7 +163,7 @@ jobs:
163163
run: >-
164164
python -m pytest -x
165165
-m config -c /dev/null -p no:warnings
166-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
166+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
167167
executor_tests:
168168
runs-on: ubuntu-latest
169169
timeout-minutes: 30
@@ -235,4 +235,4 @@ jobs:
235235
run: >-
236236
python -m pytest -x
237237
-m local -c /dev/null -p no:warnings
238-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
238+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache

‎.github/workflows/test_client_windows_nightlies.yml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ jobs:
3636
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
3737
run: >-
3838
python -m pytest -x
39-
-m object_retrieval -c /dev/null -p no:warnings
40-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
39+
-m 'object_retrieval and not unix' -c /dev/null -p no:warnings
40+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
4141
shell: pwsh
4242
object_removal:
4343
runs-on: windows-latest
@@ -63,7 +63,7 @@ jobs:
6363
run: >-
6464
python -m pytest -x
6565
-m 'object_removal and not unix' -c /dev/null -p no:warnings
66-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
66+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
6767
shell: pwsh
6868
dispatch_tests:
6969
runs-on: windows-latest
@@ -88,7 +88,7 @@ jobs:
8888
run: >-
8989
python -m pytest -x
9090
-m 'dispatch and not unix' -c /dev/null -p no:warnings
91-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
91+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
9292
shell: pwsh
9393
run_tests_online:
9494
runs-on: windows-latest
@@ -113,8 +113,8 @@ jobs:
113113
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
114114
run: >-
115115
python -m pytest -x
116-
-m run -m 'online and not unix' -c /dev/null -p no:warnings
117-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
116+
-m run -m 'online and not unix and not api' -c /dev/null -p no:warnings
117+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
118118
shell: pwsh
119119
run_tests_offline:
120120
runs-on: windows-latest
@@ -139,7 +139,7 @@ jobs:
139139
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
140140
run: >-
141141
python -m pytest -x
142-
-m run -m 'offline and not unix' -c /dev/null -p no:warnings
142+
-m run -m 'offline and not unix and not api' -c /dev/null -p no:warnings
143143
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
144144
shell: pwsh
145145
config_tests:
@@ -165,7 +165,7 @@ jobs:
165165
run: >-
166166
python -m pytest -x
167167
-m 'config and not unix' -c /dev/null -p no:warnings
168-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
168+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
169169
shell: pwsh
170170
executor_tests:
171171
runs-on: windows-latest
@@ -240,5 +240,5 @@ jobs:
240240
run: >-
241241
python -m pytest -x
242242
-m 'local and not unix' -c /dev/null -p no:warnings
243-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
243+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
244244
shell: pwsh

‎.github/workflows/test_multiple_python.yml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
run: >-
4646
python -m pytest -x
4747
-m object_retrieval -c /dev/null -p no:warnings
48-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
48+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
4949
object_removal:
5050
runs-on: ubuntu-latest
5151
name: Object Removal Tests
@@ -75,7 +75,7 @@ jobs:
7575
run: >-
7676
python -m pytest -x
7777
-m object_removal -c /dev/null -p no:warnings
78-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
78+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
7979
dispatch_tests:
8080
runs-on: ubuntu-latest
8181
timeout-minutes: 30
@@ -104,7 +104,7 @@ jobs:
104104
run: >-
105105
python -m pytest -x
106106
-m dispatch -c /dev/null -p no:warnings
107-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
107+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
108108
run_tests_online:
109109
name: Run Tests Online
110110
runs-on: ubuntu-latest
@@ -133,8 +133,8 @@ jobs:
133133
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
134134
run: >-
135135
python -m pytest -x
136-
-m run -m online -c /dev/null -p no:warnings
137-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
136+
-m "online and not api" -c /dev/null -p no:warnings
137+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
138138
run_tests_offline:
139139
runs-on: ubuntu-latest
140140
name: Run Tests Offline
@@ -163,7 +163,7 @@ jobs:
163163
SIMVUE_TOKEN: ${{ secrets.SIMVUE_TOKEN }}
164164
run: >-
165165
python -m pytest -x
166-
-m run -m offline -c /dev/null -p no:warnings
166+
-m "offline and not api" -c /dev/null -p no:warnings
167167
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
168168
config_tests:
169169
runs-on: ubuntu-latest
@@ -193,7 +193,7 @@ jobs:
193193
run: >-
194194
python -m pytest -x
195195
-m config -c /dev/null -p no:warnings
196-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
196+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
197197
executor_tests:
198198
runs-on: ubuntu-latest
199199
name: Executor Tests
@@ -251,7 +251,7 @@ jobs:
251251
run: >-
252252
python -m pytest -x
253253
-m api -c /dev/null -p no:warnings
254-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
254+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
255255
local_tests:
256256
runs-on: ubuntu-latest
257257
name: Local Tests
@@ -280,4 +280,4 @@ jobs:
280280
run: >-
281281
python -m pytest -x
282282
-m local -c /dev/null -p no:warnings
283-
-n 0 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache
283+
-n 8 -v -o cache_dir=${GITHUB_WORKSPACE}/.pytest-cache

0 commit comments

Comments
 (0)