Skip to content

Commit

Permalink
ci: add separate jobs for testing notebooks on Windows and Linux
Browse files Browse the repository at this point in the history
  • Loading branch information
BioGeek committed Aug 22, 2024
1 parent 00b091e commit a4738a2
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .github/workflows/pytest-multiversion.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,13 @@ jobs:
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -r requirements-dev.txt
- name: Test notebooks
- name: Test notebooks on Windows
if: ${{ matrix.os }} == windows-latest
run: |
if [ "${{ matrix.os }}" = "windows-latest" ]; then
$env:PYDEVD_DISABLE_FILE_VALIDATION=1; python -m ipykernel install --user --name instanovo
else
PYDEVD_DISABLE_FILE_VALIDATION=1 python -m ipykernel install --user --name instanovo
fi
$env:PYDEVD_DISABLE_FILE_VALIDATION=1; python -m ipykernel install --user --name instanovo
pytest --nbmake "./notebooks" --nbmake-kernel=instanovo --nbmake-timeout=10000
- name: Test notebooks on Linux
if: ${{ matrix.os }} != windows-latest
run: |
PYDEVD_DISABLE_FILE_VALIDATION=1 python -m ipykernel install --user --name instanovo
pytest --nbmake "./notebooks" --nbmake-kernel=instanovo --nbmake-timeout=10000

0 comments on commit a4738a2

Please sign in to comment.