-
Notifications
You must be signed in to change notification settings - Fork 8
44 lines (38 loc) · 1.02 KB
/
test_book.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Test Jupyter book build
env:
CLONE_PATH: ${{ github.workspace }}
EXAMPLES_BOOK: ${{ github.workspace }}/book/_build/html
on:
push:
branches: [main, develop]
pull_request:
branches: [main, develop]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: ["3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version}}
- name: Install OpenMPI
run: |
sudo apt-get update
sudo apt-get -y install openmpi-bin
- name: Setup python with tox
run: |
$CLONE_PATH/.github/workflows/setup_base_python.sh ${{ runner.os }}
- name: Build Jupyter Book
run: |
pushd $CLONE_PATH
tox -r -e book
popd
- name: Archive examples Jupyter book
uses: actions/upload-pages-artifact@v2
with:
path: ${{ env.EXAMPLES_BOOK }}