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