Skip to content

Commit 9877e68

Browse files
committed
add jupyterbook workflow back in
1 parent 4540914 commit 9877e68

File tree

1 file changed

+47
-47
lines changed

1 file changed

+47
-47
lines changed

.github/workflows/jupyterbook.yml

Lines changed: 47 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -7,50 +7,50 @@ on:
77
- develop
88

99
# This job installs dependencies, build the book, and pushes it to `gh-pages`
10-
#jobs:
11-
# build-and-deploy-book:
12-
# runs-on: ${{ matrix.os }}
13-
# strategy:
14-
# matrix:
15-
# os: [ubuntu-latest]
16-
# python-version: [3.8]
17-
# steps:
18-
# - uses: actions/checkout@v2
19-
#
20-
# # Install dependencies
21-
# - name: Set up Python ${{ matrix.python-version }}
22-
# uses: actions/setup-python@v1
23-
# with:
24-
# python-version: ${{ matrix.python-version }}
25-
# - name: Install dependencies
26-
# run: |
27-
# pip install wheel pytest
28-
# pip install -r notebooks/requirements.txt
29-
# pip install .
30-
#
31-
# - name: Test with pytest
32-
# run: |
33-
# pytest .
34-
#
35-
# # Build the book
36-
# - name: Build the book
37-
# run: |
38-
# jupyter-book build notebooks/
39-
# touch notebooks/_build/html/.nojekyll
40-
#
41-
# - name: Re-organize files
42-
# run: |
43-
# mkdir out
44-
# mv notebooks/_build/html out/docs
45-
# mv test out/test
46-
#
47-
# # Deploy the book's HTML to another repo
48-
# - name: publish:starters
49-
# uses: cpina/github-action-push-to-another-repository@master
50-
# env:
51-
# API_TOKEN_GITHUB: ${{ secrets.DEMO_TOKEN }}
52-
# with:
53-
# source-directory: 'out'
54-
# destination-github-username: 'OSIPI'
55-
# destination-repository-name: 'DCE-DSC-MRI_TestResults'
56-
# user-email: zaki@live.ca
10+
jobs:
11+
build-and-deploy-book:
12+
runs-on: ${{ matrix.os }}
13+
strategy:
14+
matrix:
15+
os: [ubuntu-latest]
16+
python-version: [3.8]
17+
steps:
18+
- uses: actions/checkout@v2
19+
20+
# Install dependencies
21+
- name: Set up Python ${{ matrix.python-version }}
22+
uses: actions/setup-python@v1
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
- name: Install dependencies
26+
run: |
27+
pip install wheel pytest
28+
pip install -r notebooks/requirements.txt
29+
pip install .
30+
31+
- name: Test with pytest
32+
run: |
33+
pytest .
34+
35+
# Build the book
36+
- name: Build the book
37+
run: |
38+
jupyter-book build notebooks/
39+
touch notebooks/_build/html/.nojekyll
40+
41+
- name: Re-organize files
42+
run: |
43+
mkdir out
44+
mv notebooks/_build/html out/docs
45+
mv test out/test
46+
47+
# Deploy the book's HTML to another repo
48+
- name: publish:starters
49+
uses: cpina/github-action-push-to-another-repository@master
50+
env:
51+
API_TOKEN_GITHUB: ${{ secrets.DEMO_TOKEN }}
52+
with:
53+
source-directory: 'out'
54+
destination-github-username: 'OSIPI'
55+
destination-repository-name: 'DCE-DSC-MRI_TestResults'
56+
user-email: zaki@live.ca

0 commit comments

Comments
 (0)