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 047afcb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,15 @@ jobs:
run: |
source $CONDA_ROOT/etc/profile.d/conda.sh
[ "$RUNNER_OS" = "Windows" ] && export PYTHONIOENCODING=UTF-8
mv conda-bld $CONDA_ROOT/conda-bld
export PYTHONUNBUFFERED=1
conda build --test conda-bld/noarch/*.tar.bz2 | tee build.log
export NBVER=5
[ 3.10 = ${{ matrix.pyver }} ] && export NBVER=6
[ 3.12 = ${{ matrix.pyver }} ] && export NBVER=7
conda create -n testbase 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 047afcb

Please sign in to comment.