@@ -249,38 +249,63 @@ jobs:
249
249
shell : pwsh
250
250
run : |
251
251
echo "CHANNELS=-c ${{ env.INTEL_CHANNEL }} -c conda-forge --override-channels" >> $env:GITHUB_ENV
252
+
252
253
- name : Display channels line
253
254
run : |
254
255
echo ${{ env.CHANNELS }}
256
+
255
257
- name : Download artifact
256
258
uses : actions/download-artifact@v4
257
259
with :
258
260
name : ${{ env.PACKAGE_NAME }} ${{ runner.os }} Python ${{ matrix.python }}
261
+
259
262
- uses : conda-incubator/setup-miniconda@v3
260
263
with :
261
- auto-update-conda : true
262
- conda-build-version : ' *'
263
- miniconda-version : ' latest'
264
+ miniforge-version : latest
265
+ channels : conda-forge,nodefaults
264
266
activate-environment : ${{ env.TEST_ENV_NAME }}
265
267
python-version : ${{ matrix.python }}
268
+
269
+ - name : Remove defaults channel
270
+ run : conda config --remove channels defaults
271
+
272
+ - name : Install conda-index
273
+ run : |
274
+ conda install -n base conda-index
275
+
266
276
- name : Create conda channel with the artifact bit
267
277
shell : cmd /C CALL {0}
268
278
run : |
279
+ @echo on
269
280
echo ${{ env.workdir }}
281
+ mkdir ${{ env.workdir }}\channel
270
282
mkdir ${{ env.workdir }}\channel\win-64
271
283
move ${{ env.PACKAGE_NAME }}-*.tar.bz2 ${{ env.workdir }}\channel\win-64
272
- dir ${{ env.workdir }}\channel\win-64
284
+ dir ${{ env.workdir }}\channel\win-64\
285
+
273
286
- name : Index the channel
274
287
shell : cmd /C CALL {0}
275
- run : conda index ${{ env.workdir }}\channel
288
+ run : |
289
+ @echo on
290
+ conda index ${{ env.workdir }}\channel
291
+
292
+ - name : List content of the channels
293
+ shell : cmd /C CALL {0}
294
+ run : |
295
+ dir ${{ env.workdir }}\channel
296
+ dir ${{ env.workdir }}\channel\win-64
276
297
277
298
- name : Dump dpctl version info from created channel into ver.json
278
299
shell : cmd /C CALL {0}
279
300
run : |
301
+ @echo on
280
302
conda search ${{ env.PACKAGE_NAME }} -c ${{ env.workdir }}/channel --override-channels --info --json > ${{ env.workdir }}\ver.json
303
+ dir ${{ env.workdir }}
304
+
281
305
- name : Output content of produced ver.json
282
306
shell : pwsh
283
307
run : Get-Content -Path ${{ env.workdir }}\ver.json
308
+
284
309
- name : Collect dependencies
285
310
shell : cmd /C CALL {0}
286
311
run : |
@@ -292,9 +317,11 @@ jobs:
292
317
SET PACKAGE_VERSION=%%F
293
318
)
294
319
conda install -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }} --only-deps --dry-run > lockfile
320
+
295
321
- name : Display lockfile content
296
322
shell : pwsh
297
323
run : Get-Content -Path .\lockfile
324
+
298
325
- name : Cache conda packages
299
326
uses : actions/cache@v4
300
327
env :
@@ -306,9 +333,11 @@ jobs:
306
333
restore-keys : |
307
334
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-python-${{ matrix.python }}-
308
335
${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-
336
+
309
337
- name : Install opencl_rt
310
338
shell : cmd /C CALL {0}
311
339
run : conda install -n ${{ env.TEST_ENV_NAME }} opencl_rt -c ${{ env.INTEL_CHANNEL }} --override-channels
340
+
312
341
- name : Install dpctl
313
342
shell : cmd /C CALL {0}
314
343
run : |
@@ -322,12 +351,14 @@ jobs:
322
351
)
323
352
SET TEST_DEPENDENCIES=pytest"<8" pytest-cov cython setuptools
324
353
conda install -n ${{ env.TEST_ENV_NAME }} ${{ env.PACKAGE_NAME }}=%PACKAGE_VERSION% %TEST_DEPENDENCIES% python=${{ matrix.python }} -c ${{ env.workdir }}/channel ${{ env.CHANNELS }}
354
+
325
355
- name : Report content of test environment
326
356
shell : cmd /C CALL {0}
327
357
run : |
328
358
echo "Value of CONDA enviroment variable was: " %CONDA%
329
359
echo "Value of CONDA_PREFIX enviroment variable was: " %CONDA_PREFIX%
330
360
conda info && conda list -n ${{ env.TEST_ENV_NAME }}
361
+
331
362
- name : Configure Intel OpenCL CPU RT
332
363
shell : pwsh
333
364
run : |
@@ -336,23 +367,28 @@ jobs:
336
367
# Check the variable assisting OpenCL CPU driver to find TBB DLLs which are not located where it expects them by default
337
368
$cl_cfg="$env:CONDA_PREFIX\Library\lib\cl.cfg"
338
369
Get-Content -Tail 5 -Path $cl_cfg
370
+
339
371
- name : Smoke test, step 1
340
372
shell : cmd /C CALL {0}
341
373
run : >-
342
374
conda activate ${{ env.TEST_ENV_NAME }} && python -c "import sys; print(sys.executable)"
375
+
343
376
- name : Smoke test, step 2
344
377
shell : cmd /C CALL {0}
345
378
run : >-
346
379
conda activate ${{ env.TEST_ENV_NAME }} && python -m dpctl -f
380
+
347
381
- name : Create empty temporary directory to run tests from
348
382
shell : cmd /C CALL {0}
349
383
# create temporary empty folder to runs tests from
350
384
# https://github.com/pytest-dev/pytest/issues/11904
351
385
run : >-
352
386
mkdir "${{ env.workdir }}\test_tmp"
387
+
353
388
- name : List content of workdir folder
354
389
shell : cmd /C CALL {0}
355
390
run : dir "${{ env.workdir }}"
391
+
356
392
- name : Run tests
357
393
shell : cmd /C CALL {0}
358
394
env :
0 commit comments