File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -18,10 +18,15 @@ CONVERTFLAGS = --make-index --preprocessors=nbconvert.preprocessors.ExtractOutpu
18
18
init :
19
19
python -m pip install -U -r requirements-dev.txt
20
20
21
+ # nbcollection 'convert' also runs 'execute', so just calling 'convert' here
21
22
build : convert
22
23
buildall : convertall
23
24
25
+ # 'set -e' is used to cause the bash loop to immediately exit on a failure.
26
+ # without this, the github actions workflow can succeed even if commands in these
27
+ # bash loops (installing packages, executing notebooks, converting notebooks) fail
24
28
execute :
29
+ set -e; \
25
30
i=0; \
26
31
_paths=($( MODIFIED_RQT_PATHS) ); \
27
32
for notebook in ${MODIFIED_NOTEBOOKS} ; do \
@@ -32,6 +37,7 @@ execute:
32
37
done
33
38
34
39
convert :
40
+ set -e; \
35
41
i=0; \
36
42
_paths=($( MODIFIED_RQT_PATHS) ); \
37
43
for notebook in ${MODIFIED_NOTEBOOKS} ; do \
@@ -42,6 +48,7 @@ convert:
42
48
done
43
49
44
50
executeall :
51
+ set -e; \
45
52
i=0; \
46
53
_paths=(${ALL_RQT_PATHS} ); \
47
54
for notebook in ${ALL_NOTEBOOKS} ; do \
@@ -52,6 +59,7 @@ executeall:
52
59
done
53
60
54
61
convertall :
62
+ set -e; \
55
63
i=0; \
56
64
_paths=($( ALL_RQT_PATHS) ); \
57
65
for notebook in ${ALL_NOTEBOOKS} ; do \
You can’t perform that action at this time.
0 commit comments