forked from cram2/pycram
-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (41 loc) · 1.44 KB
/
reusable-jupyter-book-build.yml
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 Jupyter-Book documentation 📖
on:
push:
branches:
- dev
pull_request:
branches:
- master
- dev
# ----------------------------------------------------------------------------------------------------------------------
defaults:
run:
shell: bash
working-directory: .
jobs:
test-and-build:
name: Build Jupyter-Book documentation
runs-on: ubuntu-22.04
steps:
- name: Checkout 🛎
uses: actions/checkout@v3
- name: Install PyCRAM dependencies 🍼
uses: py-actions/py-dependency-install@v4
with:
path: "requirements-setuptools.txt"
# ----------------------------------------------------------------------------------------------------------------
- name: Install Jupyter-Book dependencies 🍼
uses: py-actions/py-dependency-install@v4
with:
path: "requirements.txt"
# ----------------------------------------------------------------------------------------------------------------
- name: Install Jupyter-Book dependencies 📚
uses: py-actions/py-dependency-install@v4
with:
path: "doc/requirements.txt"
# ----------------------------------------------------------------------------------------------------------------
- name: Build Jupyter-Book documentation 📝
working-directory: ./doc
run: |
cd source
jupyter-book build .