Skip to content

Commit aa238bb

Browse files
authored
Merge pull request #148 from bsipocz/CI_fail_html_with_status
2 parents f924de4 + 75368a6 commit aa238bb

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: bash -c "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)