Skip to content

Commit

Permalink
Create separate job for docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Kimahriman committed Dec 16, 2024
1 parent 1dd7aa6 commit d36708e
Showing 1 changed file with 23 additions and 2 deletions.
25 changes: 23 additions & 2 deletions .github/workflows/python-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
sccache: 'true'
container: 'off'
working-directory: ./python
args: --extras devel,docs
args: --extras devel

- name: Run lints
run: |
Expand All @@ -64,8 +64,29 @@ jobs:
source .venv/bin/activate
pytest
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.13

- name: Create virtualenv
run: |
python3 -m venv .venv
- uses: PyO3/maturin-action@v1
with:
command: develop
sccache: 'true'
container: 'off'
working-directory: ./python
args: --extras docs

- name: Build docs
if: ${{ matrix.python-version == '3.13' }}
run: |
source .venv/bin/activate
sphinx-build -M html docs/source/ docs/build/
Expand Down

0 comments on commit d36708e

Please sign in to comment.