Skip to content

Commit 861e2c8

Browse files
skip openspiel notebook test on Windows GH action and add minimal dependencies for other tutorials
1 parent 5c58529 commit 861e2c8

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.github/workflows/python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
python -m pip install --upgrade pip
103103
pip install setuptools build cython wheel
104104
pip install -r tests/requirements.txt
105-
pip install -r doc/requirements.txt
105+
pip install nbformat nbclient ipykernel jupyter matplotlib
106106
- name: Build extension
107107
run: |
108108
python -m pip install -v .

tests/test_tutorials.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ def test_execute_notebook(nb_path):
5050
if sys.version_info < (3, 12):
5151
pytest.skip("Notebook execution tests require Python 3.12 or newer")
5252

53+
# Skip OpenSpiel notebook on Windows
54+
# (OpenSpiel is not available on Windows without manual install)
55+
if sys.platform == "win32" and "openspiel" in nb_path.name.lower():
56+
pytest.skip("OpenSpiel notebook requires OpenSpiel, which is not available on Windows")
57+
5358
nb = nbformat.read(str(nb_path), as_version=4)
5459

5560
# Prefer the notebook's kernelspec if provided, otherwise let nbclient pick the default.

0 commit comments

Comments
 (0)