Skip to content

Commit cb8829d

Browse files
Fixing windows by using cmd shell to run tests
1 parent d8fc8dc commit cb8829d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -274,16 +274,16 @@ jobs:
274274
(Get-Content $cl_cfg) -replace '^CL_CONFIG_TBB_DLL_PATH =', 'CL_CONFIG_TBB_DLL_PATH = C:\Miniconda\Library\bin' | Set-Content $cl_cfg
275275
}
276276
- name: Smoke test
277+
shell: cmd
277278
run: |
278279
set SYCL_ENABLE_HOST_DEVICE=1
279-
& { [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Miniconda\Library\bin\", [EnvironmentVariableTarget]::Machine) }
280280
python -c "import dpctl; dpctl.lsplatform()"
281281
python -c "import dpctl; print(dpctl.get_devices(backend='opencl', device_type='gpu'))"
282282
python -c "import dpctl; print(dpctl.get_num_devices(backend='opencl', device_type='gpu'))"
283283
- name: Run tests
284+
shell: cnd
284285
run: |
285286
set SYCL_ENABLE_HOST_DEVICE=1
286-
& { [Environment]::SetEnvironmentVariable("Path", $env:Path + ";C:\Miniconda\Library\bin\", [EnvironmentVariableTarget]::Machine) }
287287
python -m pytest -p no:faulthandler --pyargs ${{ env.MODULE_NAME }}
288288
289289
upload_linux:

0 commit comments

Comments
 (0)