@@ -365,10 +365,12 @@ jobs:
365
365
- name : Create conda channel
366
366
run : |
367
367
mkdir -p $GITHUB_WORKSPACE/channel/linux-64
368
- mv ${PACKAGE_NAME}-*.tar.bz2 $GITHUB_WORKSPACE/channel/linux-64
369
- conda index $GITHUB_WORKSPACE/channel
368
+ conda index $GITHUB_WORKSPACE/channel || exit 1
369
+ mv ${PACKAGE_NAME}-*.tar.bz2 $GITHUB_WORKSPACE/channel/linux-64 || exit 1
370
+ conda index $GITHUB_WORKSPACE/channel || exit 1
370
371
# Test channel
371
- conda search $PACKAGE_NAME -c $GITHUB_WORKSPACE/channel --override-channels
372
+ conda search $PACKAGE_NAME -c $GITHUB_WORKSPACE/channel --override-channels --info --json > $GITHUB_WORKSPACE/ver.json
373
+ cat ver.json
372
374
- name : Collect dependencies
373
375
run : |
374
376
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
@@ -391,7 +393,7 @@ jobs:
391
393
shell : bash -l {0}
392
394
run : |
393
395
CHANNELS="${{ env.CHANNELS }}"
394
- source $CONDA/etc/profile.d/conda.sh
396
+ . $CONDA/etc/profile.d/conda.sh
395
397
conda create -n examples -y pytest python=${{ matrix.python }} $CHANNELS
396
398
conda install -n examples -y cmake">=3.22" $CHANNELS || exit 1
397
399
conda install -n examples -y ninja $CHANNELS || exit 1
@@ -402,9 +404,9 @@ jobs:
402
404
shell : bash -l {0}
403
405
run : |
404
406
source $CONDA/etc/profile.d/conda.sh
405
- conda activate
406
- CHANNELS="-c $GITHUB_WORKSPACE/channel -c dppy/label/dev -c intel --override-channels"
407
- conda install -n examples -y $CHANNELS numpy dpctl dpnp || exit 1
407
+ CHANNELS="-c $GITHUB_WORKSPACE/channel -c dppy/label/dev -c intel -c defaults --override-channels"
408
+ export PACKAGE_VERSION=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}")
409
+ conda install -n examples -y ${ CHANNELS} dpctl=${PACKAGE_VERSION} dpnp || exit 1
408
410
- name : Build and run examples with native extensions
409
411
shell : bash -l {0}
410
412
run : |
0 commit comments