File tree Expand file tree Collapse file tree 2 files changed +29
-1
lines changed
Expand file tree Collapse file tree 2 files changed +29
-1
lines changed Original file line number Diff line number Diff line change 1+ name : Notebook tests
2+
3+ on : [push, pull_request]
4+
5+ jobs :
6+ run :
7+ runs-on : ubuntu-latest
8+ name : Test notebooks with nbmake
9+ steps :
10+ - uses : actions/checkout@v3
11+
12+ - uses : actions/setup-python@v3
13+ with :
14+ python-version : ' 3.9'
15+ - uses : actions/setup-java@v3
16+ with :
17+ java-version : ' 8'
18+ distribution : ' zulu'
19+ - name : Install test dependencies
20+ run : |
21+ python3 -m pip install --upgrade pip
22+ python3 -m pip install -e ".[test]"
23+ python3 -m pip install pyimagej
24+ python3 -c "import imagej; ij = imagej.init('2.5.0'); print(ij.getVersion())"
25+ - name : Test notebooks
26+ run : |
27+ pytest --nbmake --nbmake-timeout=3000 examples/*ipynb
Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ keywords = [
3636requires-python = " >=3.7"
3737dependencies = [
3838 " itkwasm >= 1.0b1" ,
39- " imjoy-rpc >= 0.5.13 " ,
39+ " imjoy-rpc >= 0.5.16 " ,
4040 " imjoy-utils >= 0.1.2" ,
4141 " numcodecs" ,
4242 " multiscale_spatial_image >= 0.10.1" ,
@@ -68,5 +68,6 @@ notebook = [
6868]
6969test = [
7070 " pytest >=2.7.3" ,
71+ " nbmake" ,
7172]
7273doc = [" sphinx" ]
You can’t perform that action at this time.
0 commit comments