Skip to content

Commit 06ba186

Browse files
fix: skip notebook test on Python 3.9 in CI
1 parent 74236d6 commit 06ba186

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/python.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,13 @@ jobs:
3838
cd dist
3939
pip install -v pygambit*.tar.gz
4040
- name: Run tests
41-
run: pytest
41+
run: |
42+
if [ "${{ matrix.python-version }}" = "3.9" ]; then
43+
# Python 3.9 on linux skips the notebook execution test (notebooks may require newer kernels/deps)
44+
pytest -q -k 'not test_execute_notebook'
45+
else
46+
pytest
47+
fi
4248
4349
macos-13:
4450
runs-on: macos-13

doc/tutorials/running_locally.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ How to run PyGambit tutorials on your computer
44
==============================================
55

66
The PyGambit tutorials are available as Jupyter notebooks and can be run interactively using any program that supports Jupyter notebooks, such as JupyterLab or VSCode.
7-
You will need a working installation of Python 3 (tested with 3.9 and later) on your machine.
7+
You will need a working installation of Python 3.9+ on your machine to run PyGambit (however the tutorials contain some syntax that may not be compatible with earlier versions of Python than 3.13).
88

99
1. To download the tutorials, open your OS's command prompt and clone the Gambit repository from GitHub, then navigate to the tutorials directory: ::
1010

0 commit comments

Comments
 (0)