Repository navigation
Update pixi and use pyrefly as type checker #135
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: Docs | |
| on: | |
| push: | |
| branches: [main] | |
| paths: &docs-paths | |
| - '.github/workflows/docs.yml' | |
| - '.github/actions/setup-pixi/**' | |
| - 'benchmark/pyproject.toml' | |
| - 'pixi.lock' | |
| - 'pixi.toml' | |
| - 'pyproject.toml' | |
| - 'skala/pyproject.toml' | |
| - 'website/**' | |
| pull_request: | |
| branches: [main] | |
| paths: *docs-paths | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| lfs: true | |
| - name: Print CPU diagnostics | |
| uses: ./.github/actions/cpu-diagnostics | |
| - name: Setup Pixi | |
| uses: ./.github/actions/setup-pixi | |
| with: | |
| environment: docs | |
| - name: Build documentation | |
| run: | | |
| sphinx-build -b html website website/_build/html | |
| touch website/_build/html/.nojekyll | |
| - name: Check external links | |
| run: >- | |
| sphinx-build -D nb_execution_mode=off -b linkcheck | |
| website website/_build/linkcheck | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3 | |
| with: | |
| path: website/_build/html | |
| deploy: | |
| needs: build | |
| if: github.event_name != 'pull_request' | |
| runs-on: ubuntu-latest | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deploy.outputs.page_url }} | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - name: Print CPU diagnostics | |
| uses: ./.github/actions/cpu-diagnostics | |
| - name: Deploy to GitHub Pages | |
| id: deploy | |
| uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4 |