-
Notifications
You must be signed in to change notification settings - Fork 20
56 lines (43 loc) Β· 1.23 KB
/
test_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
53
54
55
56
name: build
on:
push:
branches: [ "main", "test_build_env" ]
pull_request:
branches: [ "main", "test_build_env" ]
workflow_dispatch:
jobs:
build:
runs-on:
group: LargerInstance
env:
DANDI_API_KEY: ${{ secrets.DANDI_API_KEY }}
TESTING: True
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
- name: Upgrading pip
run: pip install --upgrade pip
- name: Installing package
run: pip install -e .
- name: Installing build dependencies
run: |
pip install markupsafe
pip install jupyter
pip install -U jupyter-book
pip install nbmake
pip install pytest-xdist
- name: Printing environment
run: pip freeze
- name: Testing Embargoed Notebooks
run: pytest --nbmake --nbmake-timeout=8000 -n=auto "./docs/embargoed/cell_matching.ipynb"
- name: Printing log
run: git status
- name: Printing shortlog
run: git log | git shortlog -sn
- name: Build Jupyter book
run: |
jupyter-book clean ./docs
jupyter-book build ./docs