Skip to content

Commit 184d8bf

Browse files
Skip notebooks with Dsheet in bash file nb (#328)
1 parent c5025a5 commit 184d8bf

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

web/notebooks/run_all_nb.sh

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,33 @@
11
#!/bin/bash
22

33
set -e
4+
5+
# Notebook exceptions: add filenames here to skip them in CI.
6+
# Example:
7+
# SKIP_NOTEBOOKS=(
8+
# "Case_2_DSheetPiling_Tutorial.ipynb"
9+
# )
10+
SKIP_NOTEBOOKS=(
11+
"Case_2_DSheetPiling_Tutorial.ipynb"
12+
"Case_3_DSheetPiling_FragilityCurve.ipynb"
13+
)
14+
15+
should_skip() {
16+
local nb="$1"
17+
for skip_nb in "${SKIP_NOTEBOOKS[@]}"; do
18+
if [ "$nb" = "$skip_nb" ]; then
19+
return 0
20+
fi
21+
done
22+
return 1
23+
}
24+
425
for nb in *.ipynb; do
26+
if should_skip "$nb"; then
27+
echo "Skipping notebook (exception list): $nb"
28+
continue
29+
fi
30+
531
echo "##teamcity[testStarted name='$nb']"
632
jupyter-nbconvert --to notebook --ExecutePreprocessor.timeout=-1 --execute $nb
733
echo "##teamcity[testFinished name='$nb']"

0 commit comments

Comments
 (0)