From d033e8c03a9c4909c033d867e5206997f7eae985 Mon Sep 17 00:00:00 2001 From: Oleksandr Pavlyk Date: Sat, 27 Aug 2022 18:07:17 -0500 Subject: [PATCH] test_examples_list must make sure to install the exact version built by build_linux step --- .github/workflows/conda-package.yml | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/conda-package.yml b/.github/workflows/conda-package.yml index c27fa3e89a..75f38e8325 100644 --- a/.github/workflows/conda-package.yml +++ b/.github/workflows/conda-package.yml @@ -365,10 +365,12 @@ jobs: - name: Create conda channel run: | mkdir -p $GITHUB_WORKSPACE/channel/linux-64 - mv ${PACKAGE_NAME}-*.tar.bz2 $GITHUB_WORKSPACE/channel/linux-64 - conda index $GITHUB_WORKSPACE/channel + conda index $GITHUB_WORKSPACE/channel || exit 1 + mv ${PACKAGE_NAME}-*.tar.bz2 $GITHUB_WORKSPACE/channel/linux-64 || exit 1 + conda index $GITHUB_WORKSPACE/channel || exit 1 # Test channel - conda search $PACKAGE_NAME -c $GITHUB_WORKSPACE/channel --override-channels + conda search $PACKAGE_NAME -c $GITHUB_WORKSPACE/channel --override-channels --info --json > $GITHUB_WORKSPACE/ver.json + cat ver.json - name: Collect dependencies run: | CHANNELS="-c $GITHUB_WORKSPACE/channel ${{ env.CHANNELS }}" @@ -391,7 +393,7 @@ jobs: shell: bash -l {0} run: | CHANNELS="${{ env.CHANNELS }}" - source $CONDA/etc/profile.d/conda.sh + . $CONDA/etc/profile.d/conda.sh conda create -n examples -y pytest python=${{ matrix.python }} $CHANNELS conda install -n examples -y cmake">=3.22" $CHANNELS || exit 1 conda install -n examples -y ninja $CHANNELS || exit 1 @@ -402,9 +404,9 @@ jobs: shell: bash -l {0} run: | source $CONDA/etc/profile.d/conda.sh - conda activate - CHANNELS="-c $GITHUB_WORKSPACE/channel -c dppy/label/dev -c intel --override-channels" - conda install -n examples -y $CHANNELS numpy dpctl dpnp || exit 1 + CHANNELS="-c $GITHUB_WORKSPACE/channel -c dppy/label/dev -c intel -c defaults --override-channels" + export PACKAGE_VERSION=$(python -c "${VER_SCRIPT1} ${VER_SCRIPT2}") + conda install -n examples -y ${CHANNELS} dpctl=${PACKAGE_VERSION} dpnp || exit 1 - name: Build and run examples with native extensions shell: bash -l {0} run: |