Skip to content

Commit 3edcf7c

Browse files
authored
Merge pull request #16 from brian-rose/use-binder
Use binder -- can we run the big notebook?
2 parents be6681b + ac5c6d4 commit 3edcf7c

File tree

7 files changed

+79
-8319
lines changed

7 files changed

+79
-8319
lines changed

.github/workflows/nightly-build.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,15 @@ name: nightly-build
33
on:
44
workflow_dispatch:
55
schedule:
6-
- cron: '0 0 * * *' # Daily “At 00:00
6+
- cron: '0 0 * * 0' # Weekly Sunday at 00:00
77

88
jobs:
99
build:
1010
if: ${{ github.repository_owner == 'ProjectPythia' }}
1111
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
1212
with:
1313
environment_name: cookbook-dev
14+
binder_nb_timeout: 3600 # one hour run time
1415

1516
link-check:
1617
if: ${{ github.repository_owner == 'ProjectPythia' }}

.github/workflows/publish-book.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ jobs:
1111
uses: ProjectPythia/cookbook-actions/.github/workflows/build-book.yaml@main
1212
with:
1313
environment_name: cookbook-dev
14+
binder_nb_timeout: 3600 # one hour run time
1415

1516
deploy:
1617
needs: build

.github/workflows/trigger-book-build.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ jobs:
88
with:
99
environment_name: cookbook-dev
1010
artifact_name: book-zip-${{ github.event.number }}
11+
binder_nb_timeout: 3600 # one hour run time

.pre-commit-config.yaml

+4-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ repos:
1010
- id: double-quote-string-fixer
1111

1212
- repo: https://github.com/psf/black
13-
rev: 22.12.0
13+
rev: 23.3.0
1414
hooks:
1515
- id: black
1616

@@ -28,8 +28,9 @@ repos:
2828
rev: v2.2.0
2929
hooks:
3030
- id: seed-isort-config
31+
3132
- repo: https://github.com/PyCQA/isort
32-
rev: 5.11.4
33+
rev: 5.12.0
3334
hooks:
3435
- id: isort
3536

@@ -40,7 +41,7 @@ repos:
4041
additional_dependencies: [[email protected]]
4142

4243
- repo: https://github.com/nbQA-dev/nbQA
43-
rev: 1.6.1
44+
rev: 1.7.0
4445
hooks:
4546
- id: nbqa-black
4647
additional_dependencies: [black]

_config.yml

+4-6
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@ tags:
1616
- intake-esm
1717

1818
execute:
19-
# To execute notebooks via a binder instead, replace 'cache' with 'binder'
20-
execute_notebooks: force
19+
# To execute notebooks via a Binder instead, replace 'cache' with 'binder'
20+
execute_notebooks: binder
2121
allow_errors: False # cells with expected failures must set the `raises-exception` cell tag
22-
exclude_patterns:
23-
- 'notebooks/example-workflows/key-figures.ipynb'
2422

2523
# Add a few extensions to help with parsing content
2624
parse:
@@ -37,8 +35,8 @@ parse:
3735

3836
sphinx:
3937
config:
40-
linkcheck_ignore: ["https://doi.org/*",]
41-
nb_execution_raise_on_error: true # raise exception in build if there are notebook errors
38+
linkcheck_ignore: ["https://doi.org/*"] # don't run link checker on DOI links since they are immutable
39+
nb_execution_raise_on_error: true # raise exception in build if there are notebook errors (this flag is ignored if building on binder)
4240
html_favicon: notebooks/images/icons/favicon.ico
4341
html_last_updated_fmt: '%-d %B %Y'
4442
html_theme: sphinx_pythia_theme

0 commit comments

Comments
 (0)