Skip to content

Commit edbdcd3

Browse files
Create build-book.yml
1 parent 63ff83b commit edbdcd3

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/build-book.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build Book
2+
3+
# Run this on pull requests
4+
on:
5+
pull_request:
6+
branches:
7+
- main
8+
9+
jobs:
10+
build-book:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
15+
# Install dependencies
16+
- name: Set up Python 3.11
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: 3.11
20+
21+
- name: Install dependencies
22+
run: |
23+
pip install -r requirements.txt
24+
25+
# (optional) Cache your executed notebooks between runs
26+
- name: Cache executed notebooks
27+
uses: actions/cache@v3
28+
with:
29+
path: _build/.jupyter_cache
30+
key: jupyter-book-cache-${{ hashFiles('requirements.txt') }}
31+
32+
# Build the book
33+
- name: Build the book
34+
run: |
35+
jupyter-book build .

0 commit comments

Comments
 (0)