-
Notifications
You must be signed in to change notification settings - Fork 4
38 lines (30 loc) · 895 Bytes
/
Copy pathtest.yml
File metadata and controls
38 lines (30 loc) · 895 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
38
name: test
on:
pull_request:
branches:
- main
jobs:
test-notebooks:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v1
with:
python-version: "3.10"
- name: Setup venv
uses: syphar/restore-virtualenv@v1
with:
requirement_files: requirements.txt
- name: Setup pip cache
uses: syphar/restore-pip-download-cache@v1
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
pip install -r requirements.txt
if: steps.cache-virtualenv.outputs.cache-hit != 'true'
- name: Test build
run: |
jupyter book build -n -v book/