diff --git a/.github/workflows/python-test.yml b/.github/workflows/python-test.yml index bce38aa..1c5397d 100644 --- a/.github/workflows/python-test.yml +++ b/.github/workflows/python-test.yml @@ -50,7 +50,7 @@ jobs: sccache: 'true' container: 'off' working-directory: ./python - args: --extras devel,docs + args: --extras devel - name: Run lints run: | @@ -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/