|
16 | 16 | CHANNELS: '-c dppy/label/dev -c https://software.repos.intel.com/python/conda/ -c conda-forge --override-channels'
|
17 | 17 | CONDA_BUILD_VERSION: '24.5.1'
|
18 | 18 | CONDA_INDEX_VERSION: '0.5.0'
|
| 19 | + RERUN_TESTS_ON_FAILURE: 'false' |
19 | 20 | RUN_TESTS_MAX_ATTEMPTS: 2
|
20 | 21 | TEST_ENV_NAME: 'test'
|
21 | 22 | TEST_SCOPE: >-
|
@@ -255,14 +256,14 @@ jobs:
|
255 | 256 | python -c "import dpnp, dpctl; dpctl.lsplatform()"
|
256 | 257 | python -c "import dpnp; print(dpnp.__version__)"
|
257 | 258 |
|
258 |
| - # TODO: run the whole scope once the issues on CPU are resolved |
259 |
| - # - name: Run tests |
260 |
| - # run: | |
261 |
| - # python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }} |
262 |
| - # working-directory: ${{ env.tests-path }} |
| 259 | + - name: Run tests |
| 260 | + if: env.RERUN_TESTS_ON_FAILURE != 'true' |
| 261 | + run: | |
| 262 | + python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }} |
| 263 | + working-directory: ${{ env.tests-path }} |
263 | 264 |
|
264 |
| - # TODO: remove once 2024.2 release is published |
265 | 265 | - name: Run tests
|
| 266 | + if: env.RERUN_TESTS_ON_FAILURE == 'true' |
266 | 267 | id: run_tests_linux
|
267 | 268 | uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
|
268 | 269 | with:
|
@@ -411,14 +412,14 @@ jobs:
|
411 | 412 | python -c "import dpnp, dpctl; dpctl.lsplatform()"
|
412 | 413 | python -c "import dpnp; print(dpnp.__version__)"
|
413 | 414 |
|
414 |
| - # TODO: run the whole scope once the issues on CPU are resolved |
415 |
| - # - name: Run tests |
416 |
| - # run: | |
417 |
| - # python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }} |
418 |
| - # working-directory: ${{ env.tests-path }} |
| 415 | + - name: Run tests |
| 416 | + if: env.RERUN_TESTS_ON_FAILURE != 'true' |
| 417 | + run: | |
| 418 | + python -m pytest -q -ra --disable-warnings -vv ${{ env.TEST_SCOPE }} |
| 419 | + working-directory: ${{ env.tests-path }} |
419 | 420 |
|
420 |
| - # TODO: remove once 2024.2 release is published |
421 | 421 | - name: Run tests
|
| 422 | + if: env.RERUN_TESTS_ON_FAILURE == 'true' |
422 | 423 | id: run_tests_win
|
423 | 424 | uses: nick-fields/retry@7152eba30c6575329ac0576536151aca5a72780e # v3.0.0
|
424 | 425 | with:
|
|
0 commit comments