14
14
CHANNELS : ' -c dppy/label/dev -c intel -c conda-forge --override-channels'
15
15
CONDA_BUILD_VERSION : ' 24.1.2'
16
16
CONDA_INDEX_VERSION : ' 0.4.0'
17
+ TEST_ENV_NAME : ' test'
17
18
# TODO: to add test_arraymanipulation.py back to the scope once crash on Windows is gone
18
19
TEST_SCOPE : >-
19
20
test_arraycreation.py
@@ -171,10 +172,10 @@ jobs:
171
172
auto-update-conda : true
172
173
python-version : ${{ matrix.python }}
173
174
miniconda-version : ' latest'
174
- activate-environment : ' test '
175
+ activate-environment : ${{ env.TEST_ENV_NAME }}
175
176
176
177
- name : Install conda-index
177
- run : conda install conda-index=${{ env.CONDA_INDEX_VERSION}}
178
+ run : conda install conda-index=${{ env.CONDA_INDEX_VERSION }}
178
179
179
180
- name : Create conda channel
180
181
run : |
@@ -223,10 +224,25 @@ jobs:
223
224
python -c "import dpnp; print(dpnp.__version__)"
224
225
225
226
# TODO: run the whole scope once the issues on CPU are resolved
227
+ # - name: Run tests
228
+ # run: |
229
+ # python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
230
+ # working-directory: ${{ env.tests-path }}
231
+
232
+ # TODO: remove once 2024.2 release is published
226
233
- name : Run tests
227
- run : |
228
- python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
229
- working-directory : ${{ env.tests-path }}
234
+ id : run_tests_linux
235
+ uses : nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
236
+ with :
237
+ shell : bash
238
+ timeout_minutes : 10
239
+ max_attempts : 5
240
+ retry_on : any
241
+ command : |
242
+ . $CONDA/etc/profile.d/conda.sh
243
+ conda activate ${{ env.TEST_ENV_NAME }}
244
+ cd ${{ env.tests-path }}
245
+ python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
230
246
231
247
test_windows :
232
248
name : Test ['windows-latest', python='${{ matrix.python }}']
@@ -252,7 +268,6 @@ jobs:
252
268
extracted-pkg-path : ' ${{ github.workspace }}\pkg'
253
269
tests-path : ' ${{ github.workspace }}\pkg\info\test\tests\'
254
270
ver-json-path : ' ${{ github.workspace }}\version.json'
255
- active-env-name : ' test'
256
271
257
272
steps :
258
273
- name : Download artifact
@@ -281,7 +296,7 @@ jobs:
281
296
auto-update-conda : true
282
297
python-version : ${{ matrix.python }}
283
298
miniconda-version : ' latest'
284
- activate-environment : ${{ env.active-env-name }}
299
+ activate-environment : ${{ env.TEST_ENV_NAME }}
285
300
286
301
- name : Store conda paths as envs
287
302
run : |
@@ -362,10 +377,24 @@ jobs:
362
377
python -c "import dpnp; print(dpnp.__version__)"
363
378
364
379
# TODO: run the whole scope once the issues on CPU are resolved
380
+ # - name: Run tests
381
+ # run: |
382
+ # python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
383
+ # working-directory: ${{ env.tests-path }}
384
+
385
+ # TODO: remove once 2024.2 release is published
365
386
- name : Run tests
366
- run : |
367
- python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
368
- working-directory : ${{ env.tests-path }}
387
+ id : run_tests_win
388
+ uses : nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
389
+ with :
390
+ shell : cmd
391
+ timeout_minutes : 15
392
+ max_attempts : 5
393
+ retry_on : any
394
+ command : >-
395
+ conda activate ${{ env.TEST_ENV_NAME }}
396
+ & cd ${{ env.tests-path }}
397
+ & python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }}
369
398
370
399
upload :
371
400
name : Upload ['${{ matrix.os }}', python='${{ matrix.python }}']
0 commit comments