From 2f015deea075e4aebea56a2e4a322ae64edfaf52 Mon Sep 17 00:00:00 2001 From: "Michael C. Grant" Date: Thu, 7 Mar 2024 12:48:34 -0600 Subject: [PATCH] fix python matrix --- .github/workflows/main.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 96e503b..7e5d9fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -64,7 +64,7 @@ jobs: uses: actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4 with: name: package-${{ github.sha }} - path: conda-bld/*/*.tar.bz2 + path: conda-bld tests: runs-on: ${{ matrix.os }} needs: [build,testbed] @@ -104,8 +104,14 @@ jobs: run: | source $CONDA_ROOT/etc/profile.d/conda.sh [ "$RUNNER_OS" = "Windows" ] && export PYTHONIOENCODING=UTF-8 + find $PWD/conda-bld export PYTHONUNBUFFERED=1 - conda build --test conda-bld/noarch/*.tar.bz2 | tee build.log + export NBVER=6 + [ 3.12 = ${{ matrix.pyver }} ] && export NBVER=7 + conda create -n testbase -c file:/$PWD/conda-bld -python=${{ matrix.pyver }} notebook=$NBVER local::nb_conda_kernels pytest pytest-cov mock + conda activate testbase + python -m nb_conda_kernels list + python -m pytest -v --cov=nb_conda_kernels tests | tee build.log # Because Windows refuses to preserve the error code if grep ' FAILED ' build.log; then exit -1; fi upload: