-
Notifications
You must be signed in to change notification settings - Fork 19
93 lines (72 loc) Β· 2.37 KB
/
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
name: build
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
workflow_dispatch:
jobs:
build:
runs-on:
group: LargerInstance
env:
DANDI_API_KEY: ${{ secrets.DANDI_API_KEY }}
TESTING: True
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
ref: main
- name: Set up Python
uses: actions/setup-python@v4
# with:
# python-version: "3.9"
- name: Upgrading pip
run: pip install --upgrade pip
- name: Install deps
run: pip install cython numpy
- name: Installing package
run: pip install -e .
- name: Installing packages again (this prevents a weird error)
run: pip install -r requirements.txt
- name: Installing build dependencies
run: |
pip install markupsafe==2.0.1
pip install jupyter==1.0.0
pip install -U jupyter-book==1.0.0
pip install nbmake==1.5.3
pip install pytest-xdist==3.5.0
- name: Printing environment
run: pip freeze
- name: Testing Basics Notebooks
run: |
pytest --nbmake --nbmake-timeout=100000 -n=auto "./docs/basics"
rm ./docs/basics/*.nwb
- name: Testing Visualization Notebooks
run: |
pytest --nbmake --nbmake-timeout=8000 -n=auto "./docs/visualization"
rm ./docs/visualization/*.nwb
- name: Testing First-Order Notebooks
run: |
pytest --nbmake --nbmake-timeout=8000 -n=auto "./docs/first-order"
rm ./docs/first-order/*.nwb
- name: Testing Higher-Order Notebooks
run: |
pytest --nbmake --nbmake-timeout=8000 -n=auto "./docs/higher-order"
rm ./docs/higher-order/*.nwb
- name: Testing Project Notebooks
run: |
pytest --nbmake --nbmake-timeout=8000 -n=auto "./docs/projects"
rm ./docs/projects/*.nwb
- name: Testing Embargoed Notebooks
run: |
pytest --nbmake --nbmake-timeout=8000 -n=auto "./docs/embargoed"
rm ./docs/embargoed/*.nwb
- 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