-
Notifications
You must be signed in to change notification settings - Fork 1
56 lines (45 loc) · 1.35 KB
/
docs.yml
File metadata and controls
56 lines (45 loc) · 1.35 KB
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
name: Docs
on:
pull_request:
push:
branches:
- main
permissions:
contents: read
concurrency:
group: docs-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build Python API docs
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Load CI versions
shell: bash
run: cat "$GITHUB_WORKSPACE/.github/ci-versions.env" >> "$GITHUB_ENV"
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ env.CI_RUST }}
- name: Cache Rust build
uses: Swatinem/rust-cache@v2
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ env.CI_PYTHON }}
cache: pip
cache-dependency-path: |
bindings/python/docs/requirements.txt
bindings/python/pyproject.toml
- name: Install documentation dependencies
working-directory: bindings/python
run: |
python -m pip install --upgrade pip
python -m pip install -r docs/requirements.txt
- name: Install Python bindings
run: python -m pip install ./bindings/python
- name: Build documentation
working-directory: bindings/python
run: sphinx-build -b html docs/ docs/_build -W