File tree Expand file tree Collapse file tree 2 files changed +47
-0
lines changed
Expand file tree Collapse file tree 2 files changed +47
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Build documentation
2+
3+ on : [push, pull_request]
4+
5+ permissions :
6+ contents : read
7+
8+ # Cancel ongoing builds on new changes
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.event_name }}-${{ github.head_ref || github.ref }}
11+ cancel-in-progress : true
12+
13+ jobs :
14+ build :
15+ name : Run tasks
16+ runs-on : ubuntu-latest
17+ steps :
18+ - name : Checkout
19+ uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
20+ with :
21+ persist-credentials : false
22+
23+ - name : Set up Python
24+ uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
25+ with :
26+ python-version : " 3.14"
27+
28+ - name : Install uv
29+ uses : astral-sh/setup-uv@b75a909f75acd358c2196fb9a5f1299a9a8868a4 # v6.7.0
30+ with :
31+ enable-cache : true
32+
33+ - name : Install dependencies
34+ run : uv sync --frozen --group docs
35+
36+ - name : Build documentation
37+ run : uv run poe build-docs
38+
39+ - name : Upload artifacts
40+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
41+ with :
42+ path : doc/_build
43+ include-hidden-files : true
Original file line number Diff line number Diff line change @@ -119,6 +119,10 @@ ignore_missing_imports = true
119119cmd = " python -m pytest -v -W error --junitxml=junit.xml -o junit_family=xunit1 --cov-report=html --cov-config=pyproject.toml --cov=west"
120120env = {PYTHONIOENCODING = " utf-8" }
121121
122+ [tool .poe .tasks .build-docs ]
123+ cmd = " sphinx-build -M html . _build"
124+ cwd = " ./doc"
125+
122126[tool .poe .tasks ]
123127lint = " ruff check ."
124128format = " ruff format"
You can’t perform that action at this time.
0 commit comments