Skip to content

Commit

Permalink
Build notebooks as tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jan-janssen committed Nov 12, 2024
1 parent b5bf962 commit a31700b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .ci_support/build_notebooks.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
#!/bin/bash
# execute notebooks
i=0;
for notebook in $(ls notebooks/*.ipynb); do
papermill ${notebook} ${notebook%.*}-out.${notebook##*.} -k python3 || i=$((i+1));
done;

# push error to next level
if [ $i -gt 0 ]; then
exit 1;
fi;
2 changes: 1 addition & 1 deletion .github/workflows/notebooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,4 @@ jobs:
timeout-minutes: 5
run: >
flux start
papermill notebooks/examples.ipynb examples-out.ipynb -k "python3"
.ci_support/build_notebooks.sh

0 comments on commit a31700b

Please sign in to comment.