Skip to content

Commit 4cfd677

Browse files
Test_windows step to check if script exists before attempting to run it
1 parent 242f03d commit 4cfd677

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/conda-package.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ env:
1414
TEST_ENV_NAME: test_dpctl
1515
VER_SCRIPT1: "import json; f = open('ver.json', 'r'); j = json.load(f); f.close(); d = j['dpctl'][0];"
1616
VER_SCRIPT2: "print('='.join((d[s] for s in ('version', 'build'))))"
17-
VER_SCRIPT3: "print(' '.join(d['depends']))"
17+
VER_SCRIPT3: "print(' '.join(map(lambda s: chr(39) + s + chr(39), d['depends'])))"
1818
INTEL_CHANNEL: "https://software.repos.intel.com/python/conda/"
1919

2020
jobs:
@@ -364,7 +364,11 @@ jobs:
364364
shell: pwsh
365365
run: |
366366
$script_path="$env:CONDA_PREFIX\Scripts\set-intel-ocl-icd-registry.ps1"
367-
&$script_path
367+
if (Test-Path $script_path) {
368+
&$script_path
369+
} else {
370+
Write-Warning "File $script_path was NOT found!"
371+
}
368372
# Check the variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default
369373
$cl_cfg="$env:CONDA_PREFIX\Library\lib\cl.cfg"
370374
Get-Content -Tail 5 -Path $cl_cfg

0 commit comments

Comments
 (0)