-
Notifications
You must be signed in to change notification settings - Fork 404
41 lines (37 loc) · 1.01 KB
/
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
name: Docs
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
docs:
name: Build docs
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install dependencies
env:
ALLOW_LATEST_GPYTORCH_LINOP: true
run: |
pip install git+https://github.com/cornellius-gp/linear_operator.git
pip install git+https://github.com/cornellius-gp/gpytorch.git
pip install .[dev]
pip install beautifulsoup4 ipython nbconvert jinja2
- name: Validate Sphinx
run: |
python scripts/validate_sphinx.py -p "$(pwd)"
- name: Run sphinx
run: |
# warnings treated as errors
sphinx-build -WT --keep-going sphinx/source sphinx/build
- name: Validate and parse tutorials
run: |
python scripts/parse_tutorials.py -w "$(pwd)"