Skip to content

Commit 3e7383d

Browse files
authored
[CI] split book deploy and test (#105)
* split book deploy and test * fix notebook error
1 parent ac9af41 commit 3e7383d

File tree

3 files changed

+408
-11
lines changed

3 files changed

+408
-11
lines changed

.github/workflows/deploy_book.yml

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: book
1+
name: deploy book
22

33
on:
44
push:
@@ -42,10 +42,6 @@ jobs:
4242
make bookpage
4343
make book
4444
45-
- name: Test Book
46-
run: |
47-
make test
48-
4945
- name: Deploy book on push
5046
if: ${{ success() && github.event_name == 'push' }}
5147
uses: peaceiris/[email protected]

.github/workflows/test_book.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: test book
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build-book:
13+
runs-on: ubuntu-latest
14+
defaults:
15+
run:
16+
shell: bash -l {0}
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
with:
21+
persist-credentials: false
22+
23+
# Checks that the schemas are valid
24+
- name: Set up Python
25+
uses: actions/setup-python@v4
26+
with:
27+
python-version: 3.8
28+
29+
- name: Install dependencies
30+
run: |
31+
python -m pip install --upgrade pip setuptools
32+
pip install -r requirements.txt
33+
34+
- name: Python info
35+
run: |
36+
python --version
37+
pip list
38+
39+
- name: Build Book
40+
run: |
41+
make neuroview
42+
make bookpage
43+
44+
- name: Test Book
45+
run: |
46+
make test

0 commit comments

Comments
 (0)