-
Notifications
You must be signed in to change notification settings - Fork 2
52 lines (42 loc) · 1.14 KB
/
build_docs.yml
File metadata and controls
52 lines (42 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Build book
on:
workflow_dispatch:
workflow_call:
pull_request:
branches: ["main"]
env:
DEB_PYTHON_INSTALL_LAYOUT: deb_system
IPP_NONINTERACTIVE: "1"
defaults:
run:
shell: bash -el {0}
jobs:
build-book:
runs-on: ubuntu-latest
container: ubuntu:22.04
env:
PYVISTA_OFF_SCREEN: false
PYVISTA_JUPYTER_BACKEND: "html"
steps:
- uses: actions/checkout@v4
- name: Install common packages
uses: ./.github/actions/install-dependencies
- name: cache executed notebooks
uses: actions/cache@v3
with:
path: _build/.jupyter_cache
key: jupyter-cache-${{ hashFiles('environment.yml') }}
- name: Build the book
run: jupyter-book build . -W
- uses: actions/upload-artifact@v4
# always upload artifact, which can include error messages
if: always()
with:
name: documentation
path: ./_build/html
retention-days: 2
if-no-files-found: error
- name: Show error reports
if: failure()
run: |
find _build/html/reports -type f -print -exec cat {} \;