Skip to content

Commit d033e8c

Browse files
test_examples_list must make sure to install the exact version built by build_linux step
1 parent 4bf0c61 commit d033e8c

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

.github/workflows/conda-package.yml

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -365,10 +365,12 @@ jobs:
365365
- name: Create conda channel
366366
run: |
367367
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
370371
# 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
372374
- name: Collect dependencies
373375
run: |
374376
CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}"
@@ -391,7 +393,7 @@ jobs:
391393
shell: bash -l {0}
392394
run: |
393395
CHANNELS="${{ env.CHANNELS }}"
394-
source $CONDA/etc/profile.d/conda.sh
396+
. $CONDA/etc/profile.d/conda.sh
395397
conda create -n examples -y pytest python=${{ matrix.python }} $CHANNELS
396398
conda install -n examples -y cmake">=3.22" $CHANNELS || exit 1
397399
conda install -n examples -y ninja $CHANNELS || exit 1
@@ -402,9 +404,9 @@ jobs:
402404
shell: bash -l {0}
403405
run: |
404406
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
408410
- name: Build and run examples with native extensions
409411
shell: bash -l {0}
410412
run: |

0 commit comments

Comments
 (0)