Skip to content

Commit 11fae0b

Browse files
committed
Testing: Clean notebooks before testing
1 parent fee062c commit 11fae0b

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

.github/workflows/test_workbooks.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ jobs:
2929
run: |
3030
pip install pyxem
3131
pip install -U nbval pyopencl
32+
pip install nb-clean
3233
pip install hyperspy[gui-jupyter]
3334
3435
- name: Display Python, pip and package versions

run_nbval.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,7 @@ declare -a NOTEBOOKS=(\
2121
"12 MolecularGlassOrientationMapping.ipynb"\
2222
)
2323

24+
# clean notebooks to remove outputs
25+
nb-clean clean "${NOTEBOOKS[@]}"
2426
# Test with nbval
2527
pytest -v --nbval "${NOTEBOOKS[@]}" --nbval-lax --nbval-current-env

0 commit comments

Comments
 (0)