Skip to content

Commit

Permalink
fix python matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
mcg1969 committed Mar 7, 2024
1 parent da64c3b commit 2f015de
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 2f015de

Please sign in to comment.