Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/actions-gh-pages@v3.9.0
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