-
Notifications
You must be signed in to change notification settings - Fork 7
44 lines (35 loc) · 1.12 KB
/
build_documentation.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: Build HTML documentation
on:
[push, pull_request]
jobs:
build:
name: Build HTML documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
name: Install Python
with:
python-version: '3.10'
- name: Install documentation dependencies
run: |
python -m pip install -r doc/requirements.txt
- name: Install QuTiP from GitHub
run: |
python -m pip install git+https://github.com/qutip/qutip.git@master
python -c 'import qutip; qutip.about()'
- name: Install qutip-jax from GitHub
run: |
python -m pip install jax jax[cpu]
python -m pip install .[full]
python -c 'import qutip_jax; print(qutip_jax.__version__)'
- name: Build documentation
working-directory: doc
run: |
make html SPHINXOPTS="-W --keep-going -T"
- name: Upload built files
uses: actions/upload-artifact@v3
with:
name: qutip-jax_html_docs
path: doc/_build/html/*
if-no-files-found: error