@@ -217,34 +217,18 @@ jobs:
217
217
. $CONDA/etc/profile.d/conda.sh
218
218
conda activate ${{ env.TEST_ENV_NAME }}
219
219
gdb --batch -ex r -ex 'info sharedlibrary' -ex 'set print elements 1000' -ex bt --args ${CONDA_PREFIX}/bin/python -m pytest -q -ra --disable-warnings --pyargs dpctl.tests.elementwise.test_trigonometric::test_trig_order -vv || true
220
-
221
- with :
222
- fetch-depth : 0
223
- - name : Location of working directory
224
- working-directory : ${{ github.workspace }}
225
- run : pwd
226
- - name : List directory of checkout
227
- working-directory : ${{ github.workspace }}
228
- run : ls -l dpctl
229
220
- name : Create test temp dir
230
221
# create temporary empty folder to runs tests from
231
222
# https://github.com/pytest-dev/pytest/issues/11904
232
223
run : mkdir -p ${GITHUB_WORKSPACE}/test_tmp
233
- - name : Create symbolic link to checked-out tests folder
234
- run : ln -s ${GITHUB_WORKSPACE}/dpctl/tests/ ${GITHUB_WORKSPACE}/test_tmp/dpctl_tests
235
- - name : List content of symbolic directory
236
- run : ls -l ${GITHUB_WORKSPACE}/test_tmp/dpctl_tests
237
- - name : List directory of temp_tmp
238
- working-directory : ${{ github.workspace }}/test_tmp
239
- run : ls -l
240
224
- name : Run tests
241
225
working-directory : ${{ github.workspace }}/test_tmp
242
226
env :
243
227
SYCL_CACHE_PERSISTENT : 1
244
228
run : |
245
229
. $CONDA/etc/profile.d/conda.sh
246
230
conda activate ${{ env.TEST_ENV_NAME }}
247
- python -m pytest -v --skip-known-top-k-failures-on-cpu dpctl_tests
231
+ python -m pytest -v --pyargs $MODULE_NAME
248
232
249
233
test_windows :
250
234
needs : build_windows
@@ -398,37 +382,24 @@ jobs:
398
382
run : >-
399
383
conda activate ${{ env.TEST_ENV_NAME }} && python -m dpctl -f
400
384
401
-
402
- with :
403
- fetch-depth : 0
404
-
405
385
- name : Create empty temporary directory to run tests from
406
386
shell : cmd /C CALL {0}
407
387
# create temporary empty folder to runs tests from
408
388
# https://github.com/pytest-dev/pytest/issues/11904
409
389
run : >-
410
- mkdir "${{ env.workdir }}\test_tmp" && mkdir "${{ env.workdir }}\test_tmp\dpctl_tests"
411
-
412
- - name : Copy tests from checkout
413
- shell : cmd /C CALL {0}
414
- run : >-
415
- xcopy /S /E "${{ env.workdir }}\dpctl\tests" "${{ env.workdir }}\test_tmp\dpctl_tests"
390
+ mkdir "${{ env.workdir }}\test_tmp"
416
391
417
392
- name : List content of workdir folder
418
393
shell : cmd /C CALL {0}
419
394
run : dir "${{ env.workdir }}"
420
395
421
- - name : List content of test_tmp folder
422
- shell : cmd /C CALL {0}
423
- run : dir "${{ env.workdir }}\test_tmp"
424
-
425
396
- name : Run tests
426
397
shell : cmd /C CALL {0}
427
398
env :
428
399
SYCL_CACHE_PERSISTENT : 1
429
400
working-directory : ${{ env.workdir }}\test_tmp
430
401
run : >-
431
- conda activate ${{ env.TEST_ENV_NAME }} && python -m pytest -v -s --skip-known-top-k-failures-on-cpu dpctl_tests
402
+ conda activate ${{ env.TEST_ENV_NAME }} && python -m pytest -v -s --pyargs ${{ env.MODULE_NAME }}
432
403
433
404
upload_linux :
434
405
needs : test_linux
0 commit comments