Skip to content

Commit 3056272

Browse files
authored
fail github actions if notebook execution fails (xarray-contrib#80)
* use --warning-is-error when building book
1 parent 950519c commit 3056272

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/main.yaml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ permissions:
1313
jobs:
1414
build-and-deploy:
1515
runs-on: ubuntu-20.04
16-
defaults:
17-
run:
18-
shell: bash -l {0}
1916

2017
steps:
2118
- name: Checkout repository
@@ -31,8 +28,10 @@ jobs:
3128
- uses: ./.github/actions/setupconda
3229

3330
- name: Build JupyterBook
31+
# NOTE: login shell activates conda environment
32+
shell: bash -l {0}
3433
run: |
35-
jupyter-book build .
34+
jupyter-book build ./ --warningiserror --keep-going
3635
3736
- name: Dump Build Logs
3837
if: always()

0 commit comments

Comments
 (0)