File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 70
70
- name : Install dependencies
71
71
run : |
72
72
python -m pip install --upgrade pip
73
- pip install flake8 pytest pytest-cov
73
+ pip install flake8 pytest pytest-cov nbval numpy
74
74
cp pysrc/juliacall/juliapkg-dev.json pysrc/juliacall/juliapkg.json
75
75
pip install -e .
76
76
- name : Lint with flake8
Original file line number Diff line number Diff line change @@ -75,3 +75,21 @@ def test_issue_433():
75
75
"""
76
76
)
77
77
assert out == 25
78
+
79
+ def test_notebook ():
80
+ import os
81
+ import subprocess
82
+ import sys
83
+ from pathlib import Path
84
+
85
+ result = subprocess .run (
86
+ [
87
+ sys .executable ,
88
+ "-m" ,
89
+ "pytest" ,
90
+ "--nbval" ,
91
+ str (Path (__file__ ).parent / "test_nb.ipynb" ),
92
+ ],
93
+ env = os .environ ,
94
+ )
95
+ assert result .returncode == 0
You can’t perform that action at this time.
0 commit comments