Skip to content

Commit a18af27

Browse files
authored
Merge pull request #31 from scientificcomputing/cache
cache executed notebooks
2 parents 299ecee + d578dd2 commit a18af27

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/build_docs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ jobs:
2525
- name: Install common packages
2626
uses: ./.github/actions/install-dependencies
2727

28+
- name: cache executed notebooks
29+
uses: actions/cache@v3
30+
with:
31+
path: _build/.jupyter_cache
32+
key: jupyter-cache-${{ hashFiles('environment.yml') }}
33+
2834
- name: Build the book
2935
run:
3036
jupyter-book build . -W

_config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ title: MPI tutorial
55
author: Jørgen S. Dokken
66
logo: logo.png
77

8-
# Force re-execution of notebooks on each build.
8+
# Cache execution of notebooks
99
# See https://jupyterbook.org/content/execute.html
1010
execute:
11-
execute_notebooks: force
11+
execute_notebooks: cache
1212
timeout: 1800
1313
exclude_patterns:
1414
# temporarily skip dolfinx rebuild so we can figure it out

0 commit comments

Comments
 (0)