@@ -139,8 +139,8 @@ jobs:
139
139
echo "wheel_name=${name[0]}" >> $GITHUB_OUTPUT
140
140
141
141
- name : " Upload wheel to artifacts"
142
- if : inputs.wheel == 'true'
143
- uses : actions/upload-artifact@v3
142
+ if : ( inputs.wheel == 'true') && !(inputs.test_any && (matrix.os == 'ubuntu-latest') )
143
+ uses : actions/upload-artifact@v4
144
144
with :
145
145
name : ${{ steps.wheel.outputs.wheel_name }}
146
146
path : dist/${{ steps.wheel.outputs.wheel_name }}
@@ -167,7 +167,7 @@ jobs:
167
167
168
168
- name : " Upload wheelhouse to artifacts"
169
169
if : inputs.wheelhouse == 'true'
170
- uses : actions/upload-artifact@v3.1.2
170
+ uses : actions/upload-artifact@v4
171
171
with :
172
172
name : ${{ steps.wheelhouse.outputs.name }}
173
173
path : ${{ steps.wheelhouse.outputs.name }}
@@ -204,7 +204,7 @@ jobs:
204
204
run : pip list
205
205
206
206
- name : " Test Docstrings"
207
- if : inputs.DOCSTRING == 'true'
207
+ if : ( inputs.DOCSTRING == 'true') && !((inputs.test_any == 'true') && (matrix.os == 'ubuntu-latest'))
208
208
uses :
ansys/pydpf-actions/[email protected]
209
209
with :
210
210
MODULE : ${{env.MODULE}}
@@ -215,7 +215,6 @@ jobs:
215
215
shell : pwsh
216
216
run : |
217
217
.github\workflows\scripts\separate_long_core_tests.ps1
218
- if : always()
219
218
220
219
- name : " Set pytest arguments"
221
220
shell : bash
@@ -228,11 +227,9 @@ jobs:
228
227
working-directory : tests
229
228
run : |
230
229
pytest $DEBUG $COVERAGE $RERUNS --junitxml=junit/test-results.xml .
231
- if : always()
232
230
233
231
- name : " Kill all servers"
234
232
uses :
ansys/pydpf-actions/[email protected]
235
- if : always()
236
233
237
234
- name : " Test API test_launcher"
238
235
uses : nick-fields/retry@v2
@@ -245,7 +242,6 @@ jobs:
245
242
246
243
- name : " Kill all servers"
247
244
uses :
ansys/pydpf-actions/[email protected]
248
- if : always()
249
245
250
246
- name : " Test API test_server"
251
247
uses : nick-fields/retry@v2
@@ -255,11 +251,9 @@ jobs:
255
251
shell : bash
256
252
command : |
257
253
pytest $DEBUG $COVERAGE $RERUNS --junitxml=../tests/junit/test-results3.xml test_server/.
258
- if : always()
259
254
260
255
- name : " Kill all servers"
261
256
uses :
ansys/pydpf-actions/[email protected]
262
- if : always()
263
257
264
258
- name : " Test API test_local_server"
265
259
uses : nick-fields/retry@v2
@@ -272,7 +266,6 @@ jobs:
272
266
273
267
- name : " Kill all servers"
274
268
uses :
ansys/pydpf-actions/[email protected]
275
- if : always()
276
269
277
270
- name : " Test API test_multi_server"
278
271
uses : nick-fields/retry@v2
@@ -285,7 +278,6 @@ jobs:
285
278
286
279
- name : " Kill all servers"
287
280
uses :
ansys/pydpf-actions/[email protected]
288
- if : always()
289
281
290
282
- name : " Test API test_remote_workflow"
291
283
uses : nick-fields/retry@v2
@@ -298,7 +290,6 @@ jobs:
298
290
299
291
- name : " Kill all servers"
300
292
uses :
ansys/pydpf-actions/[email protected]
301
- if : always()
302
293
303
294
- name : " Test API test_remote_operator"
304
295
shell : bash
@@ -308,7 +299,6 @@ jobs:
308
299
309
300
- name : " Kill all servers"
310
301
uses :
ansys/pydpf-actions/[email protected]
311
- if : always()
312
302
313
303
- name : " Test API test_workflow"
314
304
uses : nick-fields/retry@v2
@@ -319,11 +309,9 @@ jobs:
319
309
shell : bash
320
310
command : |
321
311
pytest $DEBUG $COVERAGE $RERUNS --junitxml=../tests/junit/test-results8.xml test_workflow/.
322
- if : always()
323
312
324
313
- name : " Kill all servers"
325
314
uses :
ansys/pydpf-actions/[email protected]
326
- if : always()
327
315
328
316
- name : " Test API test_service"
329
317
uses : nick-fields/retry@v2
@@ -335,21 +323,18 @@ jobs:
335
323
pytest $DEBUG $COVERAGE $RERUNS --junitxml=tests/junit/test-results9.xml test_service/.
336
324
337
325
- name : " Kill all servers"
338
- uses :
ansys/pydpf-actions/[email protected]
339
- if : always()
326
+ uses :
ansys/pydpf-actions/[email protected]
340
327
341
328
- name : " Test API Entry"
342
329
shell : bash
343
330
working-directory : tests
344
331
run : |
345
332
cd entry
346
333
pytest $DEBUG $COVERAGE $RERUNS --junitxml=../junit/test-results10.xml .
347
- if : always()
348
334
timeout-minutes : 30
349
335
350
336
- name : " Kill all servers"
351
- uses :
ansys/pydpf-actions/[email protected]
352
- if : always()
337
+ uses :
ansys/pydpf-actions/[email protected]
353
338
354
339
- name : " Test API test_custom_type_field"
355
340
uses : nick-fields/retry@v2
@@ -361,15 +346,13 @@ jobs:
361
346
pytest $DEBUG $COVERAGE $RERUNS --junitxml=../tests/junit/test-results11.xml test_custom_type_field/.
362
347
363
348
- name : " Kill all servers"
364
- uses :
ansys/pydpf-actions/[email protected]
365
- if : always()
349
+ uses :
ansys/pydpf-actions/[email protected]
366
350
367
351
- name : " Upload Test Results"
368
- uses : actions/upload-artifact@v3
352
+ uses : actions/upload-artifact@v4
369
353
with :
370
- name : ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ inputs.ANSYS_VERSION }}
354
+ name : ${{ env.PACKAGE_NAME }}_${{ matrix.python-version }}_${{ matrix.os }}_pytest_${{ inputs.ANSYS_VERSION }}${{ inputs.test_any == 'true' && '_any' || '' }}
371
355
path : tests/junit/test-results.xml
372
- if : always()
373
356
374
357
- name : " Upload coverage to Codecov"
375
358
uses : codecov/codecov-action@v3
0 commit comments