Skip to content

Commit f4d8023

Browse files
committed
CI: making sure we fail buildhtml job with tracebacks
1 parent f924de4 commit f4d8023

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,9 @@ commands =
6262
# sed -i needs a bit of hacky conditional on ubuntu to cover the case of an empty ignore
6363
buildhtml: bash -c "find tutorials -name '*md' | grep -f ignore_testing | sort | uniq > ignore_execute; if [ -s ignore_execute ]; then cat ignore_execute | xargs -n 1 sed -i -e 's|name: python3|name: python3\nskip_execution: true|g';fi"
6464

65-
66-
buildhtml: jupyter-book build --execute --html
65+
# Status check is a workaround until https://github.com/jupyter-book/mystmd/issues/2113 is fixed
66+
buildhtml: jupyter-book build --execute --html 2>&1 | tee /tmp/mystbuild.log
67+
buildhtml: bash -c "if grep -q 'Traceback .most recent call last.' /tmp/mystbuild.log; then exit 1; fi"
6768
buildhtml: bash -c "rm _build/html/*thebe*.js"
6869

6970
pip_pre =

0 commit comments

Comments
 (0)