Skip to content

Commit c4560da

Browse files
Build docs in CI (fixes #497) (#498)
1 parent 6bd39ba commit c4560da

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

.github/workflows/pythonpackage.yml

+16
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,19 @@ jobs:
3737
uses: codecov/codecov-action@v4
3838
with:
3939
token: ${{ secrets.CODECOV_TOKEN }}
40+
41+
docs:
42+
runs-on: ubuntu-latest
43+
steps:
44+
- uses: actions/checkout@v4
45+
- uses: actions/setup-python@v5
46+
with:
47+
python-version: 3.12
48+
cache: 'pip'
49+
cache-dependency-path: |
50+
'pyproject.toml'
51+
'doc/requirements.txt'
52+
- name: Install dependencies
53+
run: python3 -m pip install -r doc/requirements.txt -e .
54+
- name: Build docs
55+
run: make -C doc html

doc/requirements.txt

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
sphinx
2-
sphinx-autodoc-typehints
3-
furo
1+
sphinx~=7.3
2+
sphinx-autodoc-typehints~=2.2
3+
furo~=2024.5

0 commit comments

Comments
 (0)