Commit 11122d7
CI: gate the first jb build so notebook errors cannot pass green (#588)
The sphinx-tojupyter step is the first `jb build` in this workflow, and
`execute_notebooks: "cache"` means only the first build executes notebooks
— the later HTML build reads the cache. So this step is where a
CellExecutionError surfaces, and it could not fail.
It already carried `-n -W`, but that was inert: the step runs three
commands under `shell: bash -l {0}`, and GitHub only injects `-eo pipefail`
for the bare `shell: bash` shorthand. An explicit custom shell spec gets
neither `-e` nor `-o pipefail`, so a failing `jb build` was followed by
`mkdir` and `cp`, and the step exited with `cp`'s status. `--keep-going`
makes that worse rather than better, since it forces Sphinx to emit output
despite the errors, guaranteeing the .ipynb files exist for `cp`.
One line fixes it. The flags were already right.
Refs QuantEcon/meta#340
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent b22983d commit 11122d7
1 file changed
Lines changed: 12 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
58 | 70 | | |
59 | 71 | | |
60 | 72 | | |
| |||
0 commit comments