Skip to content

Commit ffe894f

Browse files
Make docs build fail on notebook execution errors
Co-authored-by: saulshanabrook <[email protected]>
1 parent f306e07 commit ffe894f

File tree

2 files changed

+12
-11
lines changed

2 files changed

+12
-11
lines changed

docs/conf.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@
115115
"**.ipynb_checkpoints",
116116
"auto_examples/*.ipynb",
117117
# "auto_examples/*.md5",
118+
"conf.py",
118119
]
119120
nitpicky = True
120121

@@ -164,7 +165,7 @@
164165
# nb_execution_cache_path = ''
165166

166167
# Exclude (POSIX) glob patterns for notebooks
167-
# nb_execution_excludepatterns = ()
168+
nb_execution_excludepatterns = ("explanation/*", "reference/*")
168169

169170
# Execution timeout (seconds)
170171
nb_execution_timeout = 60 * 10
@@ -176,7 +177,7 @@
176177
# nb_execution_allow_errors = False
177178

178179
# Raise an exception on failed execution, rather than emitting a warning
179-
nb_execution_raise_on_error = False
180+
nb_execution_raise_on_error = True
180181

181182
# Print traceback to stderr on execution error
182183
nb_execution_show_tb = True

docs/sg_execution_times.rst

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
Computation times
88
=================
9-
**00:00.519** total execution time for 12 files **from all galleries**:
9+
**00:00.402** total execution time for 12 files **from all galleries**:
1010

1111
.. container::
1212

@@ -32,20 +32,20 @@ Computation times
3232
* - Example
3333
- Time
3434
- Mem (MB)
35-
* - :ref:`sphx_glr_auto_examples_fib.py` (``../python/egglog/examples/fib.py``)
36-
- 00:00.224
37-
- 0.0
3835
* - :ref:`sphx_glr_auto_examples_lambda_.py` (``../python/egglog/examples/lambda_.py``)
39-
- 00:00.169
36+
- 00:00.167
37+
- 0.0
38+
* - :ref:`sphx_glr_auto_examples_fib.py` (``../python/egglog/examples/fib.py``)
39+
- 00:00.112
4040
- 0.0
4141
* - :ref:`sphx_glr_auto_examples_ndarrays.py` (``../python/egglog/examples/ndarrays.py``)
4242
- 00:00.044
4343
- 0.0
4444
* - :ref:`sphx_glr_auto_examples_matrix.py` (``../python/egglog/examples/matrix.py``)
45-
- 00:00.019
45+
- 00:00.018
4646
- 0.0
4747
* - :ref:`sphx_glr_auto_examples_jointree.py` (``../python/egglog/examples/jointree.py``)
48-
- 00:00.015
48+
- 00:00.014
4949
- 0.0
5050
* - :ref:`sphx_glr_auto_examples_multiset.py` (``../python/egglog/examples/multiset.py``)
5151
- 00:00.012
@@ -57,10 +57,10 @@ Computation times
5757
- 00:00.008
5858
- 0.0
5959
* - :ref:`sphx_glr_auto_examples_higher_order_functions.py` (``../python/egglog/examples/higher_order_functions.py``)
60-
- 00:00.007
60+
- 00:00.006
6161
- 0.0
6262
* - :ref:`sphx_glr_auto_examples_eqsat_basic.py` (``../python/egglog/examples/eqsat_basic.py``)
63-
- 00:00.006
63+
- 00:00.005
6464
- 0.0
6565
* - :ref:`sphx_glr_auto_examples_schedule_demo.py` (``../python/egglog/examples/schedule_demo.py``)
6666
- 00:00.004

0 commit comments

Comments
 (0)