Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/check-onemath.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ env:
rerun-tests-timeout: 30
rerun-tensor-tests-timeout: 10
rerun-tensor-tests-max-attempts: 3
# Per-test limit to kill a test stuck at 99%: https://github.com/IntelPython/dpctl/issues/1954
# The thread method exits the process, so -n is needed for xdist to replace the worker
tensor-test-timeout: 120

jobs:
build_env_file:
Expand Down Expand Up @@ -177,7 +180,7 @@ jobs:
- name: Run tensor tests
if: env.rerun-tests-on-failure != 'true'
run: |
python -m pytest -ra --pyargs dpnp.tests.tensor
python -m pytest -n auto -ra --timeout=${{ env.tensor-test-timeout }} --timeout-method=thread --pyargs dpnp.tests.tensor
env:
SYCL_CACHE_PERSISTENT: 1

Expand Down Expand Up @@ -212,7 +215,7 @@ jobs:
. $CONDA/etc/profile.d/mamba.sh
mamba activate ${{ env.test-env-name }}

python -m pytest -ra --pyargs dpnp.tests.tensor
python -m pytest -n auto -ra --timeout=${{ env.tensor-test-timeout }} --timeout-method=thread --pyargs dpnp.tests.tensor
env:
SYCL_CACHE_PERSISTENT: 1

Expand Down Expand Up @@ -315,7 +318,7 @@ jobs:
- name: Run tensor tests
if: env.rerun-tests-on-failure != 'true'
run: |
python -m pytest -ra --pyargs dpnp.tests.tensor
python -m pytest -n auto -ra --timeout=${{ env.tensor-test-timeout }} --timeout-method=thread --pyargs dpnp.tests.tensor
env:
SYCL_CACHE_PERSISTENT: 1

Expand Down Expand Up @@ -350,6 +353,6 @@ jobs:
. $CONDA/etc/profile.d/mamba.sh
mamba activate ${{ env.test-env-name }}

python -m pytest -ra --pyargs dpnp.tests.tensor
python -m pytest -n auto -ra --timeout=${{ env.tensor-test-timeout }} --timeout-method=thread --pyargs dpnp.tests.tensor
env:
SYCL_CACHE_PERSISTENT: 1
2 changes: 2 additions & 0 deletions environments/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,6 @@ channels:
- conda-forge
dependencies:
- pytest
- pytest-timeout
- pytest-xdist
- scipy
Loading