-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[CI] split book deploy and test (#105)
* split book deploy and test * fix notebook error
- Loading branch information
Showing
3 changed files
with
408 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: book | ||
name: deploy book | ||
|
||
on: | ||
push: | ||
|
@@ -42,10 +42,6 @@ jobs: | |
make bookpage | ||
make book | ||
- name: Test Book | ||
run: | | ||
make test | ||
- name: Deploy book on push | ||
if: ${{ success() && github.event_name == 'push' }} | ||
uses: peaceiris/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: test book | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build-book: | ||
runs-on: ubuntu-latest | ||
defaults: | ||
run: | ||
shell: bash -l {0} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
persist-credentials: false | ||
|
||
# Checks that the schemas are valid | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.8 | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip setuptools | ||
pip install -r requirements.txt | ||
- name: Python info | ||
run: | | ||
python --version | ||
pip list | ||
- name: Build Book | ||
run: | | ||
make neuroview | ||
make bookpage | ||
- name: Test Book | ||
run: | | ||
make test |
Oops, something went wrong.