Skip to content

Commit

Permalink
fix test run job
Browse files Browse the repository at this point in the history
  • Loading branch information
npolina4 authored Apr 24, 2024
1 parent 372f329 commit 6302f23
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/gol_build_test_upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,34 +161,30 @@ jobs:
pip install pytest-mock
# Test installed packages
conda list -n test-env
cd ./demos/game-of-life/game_of_life_demo/tests
- name: Run tests (numpy)
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate test-env
export OCL_ICD_FILENAMES=libintelocl.so
#tree .
#echo $(dirname $(find . -name "conftest.py"))
#pytest $(dirname $(find . -name "conftest.py")) --variant numpy
pytest --variant numpy
pytest ./demos/game-of-life/game_of_life_demo --variant numpy
- name: Run tests (dpnp)
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate test-env
export OCL_ICD_FILENAMES=libintelocl.so
pytest --variant dpnp
pytest ./demos/game-of-life/game_of_life_demo --variant dpnp
- name: Run tests (numba parallel)
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate test-env
export OCL_ICD_FILENAMES=libintelocl.so
pytest ./game_of_life_demo/tests --variant numba --parallel
pytest ./demos/game-of-life/game_of_life_demo --variant numba --parallel
- name: Run tests (numba no-parallel)
run: |
. $CONDA/etc/profile.d/conda.sh
conda activate test-env
export OCL_ICD_FILENAMES=libintelocl.so
pytest --variant numba --no-parallel
pytest ./demos/game-of-life/game_of_life_demo --variant numba --no-parallel
test_windows:
needs: build_windows
Expand Down Expand Up @@ -278,19 +274,19 @@ jobs:
- name: Run tests (numpy)
shell: cmd /C CALL {0}
run: >-
conda activate test-env && pytest ./game_of_life_demo/tests --variant numpy
conda activate test-env && pytest ./demos/game-of-life/game_of_life_demo --variant numpy
- name: Run tests (dpnp)
shell: cmd /C CALL {0}
run: >-
conda activate test-env && pytest ./game_of_life_demo/tests --variant dpnp
conda activate test-env && pytest ./demos/game-of-life/game_of_life_demo --variant dpnp
- name: Run tests (numba no-parallel)
shell: cmd /C CALL {0}
run: >-
conda activate test-env && pytest ./game_of_life_demo/tests --variant numba --no-parallel
conda activate test-env && pytest ./demos/game-of-life/game_of_life_demo --variant numba --no-parallel
- name: Run tests (numba parallel)
shell: cmd /C CALL {0}
run: >-
conda activate test-env && pytest ./game_of_life_demo/tests --variant numba --parallel
conda activate test-env && pytest ./demos/game-of-life/game_of_life_demo --variant numba --parallel
upload_linux:
Expand Down

0 comments on commit 6302f23

Please sign in to comment.