Skip to content

Commit

Permalink
[CI] split book deploy and test (#105)
Browse files Browse the repository at this point in the history
* split book deploy and test

* fix notebook error
  • Loading branch information
Remi-Gau authored Nov 2, 2022
1 parent ac9af41 commit 3e7383d
Show file tree
Hide file tree
Showing 3 changed files with 408 additions and 11 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/deploy_book.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: book
name: deploy book

on:
push:
Expand Down Expand Up @@ -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]
Expand Down
46 changes: 46 additions & 0 deletions .github/workflows/test_book.yml
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
Loading

0 comments on commit 3e7383d

Please sign in to comment.