Skip to content

Commit d36708e

Browse files
committed
Create separate job for docs
1 parent 1dd7aa6 commit d36708e

File tree

1 file changed

+23
-2
lines changed

1 file changed

+23
-2
lines changed

.github/workflows/python-test.yml

+23-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
sccache: 'true'
5151
container: 'off'
5252
working-directory: ./python
53-
args: --extras devel,docs
53+
args: --extras devel
5454

5555
- name: Run lints
5656
run: |
@@ -64,8 +64,29 @@ jobs:
6464
source .venv/bin/activate
6565
pytest
6666
67+
docs:
68+
runs-on: ubuntu-latest
69+
steps:
70+
- uses: actions/checkout@v4
71+
72+
- name: Setup Python
73+
uses: actions/setup-python@v5
74+
with:
75+
python-version: 3.13
76+
77+
- name: Create virtualenv
78+
run: |
79+
python3 -m venv .venv
80+
81+
- uses: PyO3/maturin-action@v1
82+
with:
83+
command: develop
84+
sccache: 'true'
85+
container: 'off'
86+
working-directory: ./python
87+
args: --extras docs
88+
6789
- name: Build docs
68-
if: ${{ matrix.python-version == '3.13' }}
6990
run: |
7091
source .venv/bin/activate
7192
sphinx-build -M html docs/source/ docs/build/

0 commit comments

Comments
 (0)