-
Notifications
You must be signed in to change notification settings - Fork 56
46 lines (37 loc) · 1.11 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-22.04
python: 3.8
steps:
- uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Setup Pip Cache
uses: actions/cache@v3
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 doc/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 doc; make SPHINXOPTS="-W --keep-going" html)