-
Notifications
You must be signed in to change notification settings - Fork 16
46 lines (43 loc) · 1.05 KB
/
build.yml
File metadata and controls
46 lines (43 loc) · 1.05 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
name: build
on:
push:
branches: [ master ]
pull_request:
types: [ opened, reopened, synchronize ]
permissions:
contents: read
jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Python 3.10
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Setup UV
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Install dependencies
run: uv sync --extra docs
- name: Build documentation
run: |
cd docs
uv run sphinx-build -b html -j auto -a -n -T -W --keep-going . _build/html
dist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Setup Python 3.10
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Setup UV
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
- name: Install dependencies
run: uv sync
- name: Build distributions
run: uv build