Skip to content

Commit 329ff38

Browse files
committed
Add build-docs job
1 parent 3b664af commit 329ff38

1 file changed

Lines changed: 38 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,3 +82,41 @@ jobs:
8282
name: wheel-linux-x86_64-py${{ matrix.python-version }}
8383
path: dist/*.whl
8484
retention-days: 7
85+
86+
build-docs:
87+
name: Build docs
88+
runs-on: ubuntu-latest
89+
timeout-minutes: 15
90+
needs: build-wheel
91+
steps:
92+
- name: Checkout repository
93+
uses: actions/checkout@v6
94+
95+
- name: Set up Python
96+
uses: actions/setup-python@v6
97+
with:
98+
python-version: "3.10"
99+
100+
- name: Download wheel artifact
101+
uses: actions/download-artifact@v5
102+
with:
103+
name: wheel-linux-x86_64-py3.10
104+
path: dist/
105+
106+
- name: Install dependencies
107+
run: |
108+
python -m pip install --upgrade pip
109+
pip install dist/*.whl
110+
pip install -r docs/requirements.txt
111+
112+
- name: Build documentation
113+
run: |
114+
cd docs
115+
make html
116+
117+
- name: Upload documentation artifact
118+
uses: actions/upload-artifact@v5
119+
with:
120+
name: docs-html
121+
path: docs/build/html/
122+
retention-days: 7

0 commit comments

Comments
 (0)