Publish Python documentation using GitHub pages #174
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Python documentation | |
| on: | |
| pull_request: | |
| push: | |
| branches: [ "main" ] | |
| workflow_dispatch: | |
| jobs: | |
| build: | |
| name: Build documentation | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout sources | |
| uses: actions/checkout@v4 | |
| - uses: prefix-dev/setup-pixi@v0.8.8 | |
| with: | |
| pixi-version: v0.45.0 | |
| cache: true | |
| frozen: true | |
| - uses: Swatinem/rust-cache@v2 | |
| with: | |
| save-if: ${{ github.ref == 'refs/heads/main' }} | |
| - name: Build HTML | |
| # Turn warning into errors | |
| run: SPHINXOPTS="-W --keep-going -n" pixi run -e docs python-docs |