-
Notifications
You must be signed in to change notification settings - Fork 40
61 lines (51 loc) · 1.39 KB
/
build-docs.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
name: Build docs
on:
pull_request:
branches:
- main
push:
branches:
- docs
workflow_dispatch:
jobs:
build-and-upload-artifact:
name: ${{ matrix.platform }} py${{ matrix.python }}
runs-on: ${{ matrix.platform }}
strategy:
fail-fast: false
matrix:
platform: [ubuntu-latest]
python: ["3.10"]
steps:
- uses: actions/checkout@v3
- uses: tlambert03/setup-qt-libs@v1
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install 'setuptools<50.0'
python -m pip install .[all,testing,docs]
- name: Get data
working-directory: doc/examples
run: |
if [[ ! -f schizonts/schizont4_UninfRBC1_01.tif ]]; then
wget -q -O s.zip https://osf.io/7vyx3/download && unzip s.zip;
fi
- name: Build docs
uses: aganders3/headless-gui@v1
with:
run: make -C doc html
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: docs
path: doc/_build/html
- name: Cache
uses: actions/cache@v3
with:
path: |
doc/examples/schizonts
key: full-data