-
Notifications
You must be signed in to change notification settings - Fork 16
37 lines (32 loc) · 889 Bytes
/
test.yml
File metadata and controls
37 lines (32 loc) · 889 Bytes
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
name: Test the book
on:
pull_request:
branches: [main]
jobs:
build:
name: Build and Publish
runs-on: ubuntu-latest
steps:
- name: Checkout the branch
uses: actions/checkout@v3
- name: Jupyter Book cache
id: cache
uses: actions/cache@v3
with:
path: ./jupyter_cache
key: ${{ github.event.number }}-jupyter-cache-${{ github.run_id }}
restore-keys: |
${{ github.event.number }}-jupyter-cache
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
pip install -r requirements.txt
- name: Build the book
run: |
mkdir -p ./jupyter_cache
ls ./jupyter_cache
jupyter-book build -n --keep-going book
ls ./jupyter_cache