Skip to content

Commit

Permalink
Merge pull request #18 from samaid/build
Browse files Browse the repository at this point in the history
Update build.yml
  • Loading branch information
samaid authored Apr 18, 2023
2 parents c43c3ce + 548a170 commit 55e2ba8
Showing 1 changed file with 19 additions and 3 deletions.
22 changes: 19 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,9 @@ jobs:
env:
workdir: '${{ github.workspace }}'
CHANNELS: -c intel -c main --override-channels

steps:
- uses: actions/checkout@v3
- name: Checkout sources
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Download artifact
Expand Down Expand Up @@ -254,8 +254,24 @@ jobs:
restore-keys: |
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
- name: Install opencl_rt
shell: cmd /C CALL {0}
run: conda install -n test-env opencl_rt -c intel --override-channels
- name: Install dependencies
shell: cmd /C CALL {0}
run: |
SET "TEST_DEPENDENCIES=pytest pytest-cov"
conda install -n test-env ${{ env.PACKAGE_NAME }} %TEST_DEPENDENCIES% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }}
- name: Configure Intel OpenCL CPU RT
shell: pwsh
run: |
$script_path="$env:CONDA_PREFIX\Scripts\set-intel-ocl-icd-registry.ps1"
&$script_path
# Check the variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default
$cl_cfg="$env:CONDA_PREFIX\Library\lib\cl.cfg"
Get-Content -Tail 5 -Path $cl_cfg
- name: Run tests (numpy)
0 shell: cmd /C CALL {0}
shell: cmd /C CALL {0}
run: >-
conda activate test-env && pytest ./game_of_life_demo/tests --variant numpy
- name: Run tests (dpnp)
Expand Down

0 comments on commit 55e2ba8

Please sign in to comment.