-
Notifications
You must be signed in to change notification settings - Fork 69
46 lines (37 loc) · 1.12 KB
/
run-docs-build.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
name : Run Docs Build
on: [push, pull_request]
jobs:
test:
runs-on: ${{ matrix.os }}
timeout-minutes: 5
env:
PIP_NO_PIP_VERSION_CHECK: 1
PIP_CACHE_DIR: .pip-cache
PIP_PREFER_BINARY: 1
strategy:
fail-fast: False
matrix:
include:
- os: ubuntu-20.04
python: "3.9"
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Setup Pip Cache
uses: actions/cache@v4
with:
path: .pip-cache
key: ${{ runner.os }}-py-${{ matrix.python }}-pip-${{ hashFiles('setup.*', '.github/workflows/run-docs-build.yml') }}
restore-keys: |
${{ runner.os }}-py-${{ matrix.python }}-pip
- name: Install Doc Deps
run: python -m pip install -r docs/requirements-rtd.txt
- name: Install
run: python -m pip install -e .
- name: List Build Env
run: pip list --format=freeze
- name: Build Docs
run: (cd docs; make SPHINXOPTS="-W --keep-going" html)