deps: update jupytext requirement from >=1.16 to >=1.19.3 #14
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] | |
| pull_request: | |
| workflow_dispatch: | |
| # Default to read-only; the elevated Pages/OIDC scopes are granted only to the | |
| # deploy job below, so fork-PR builds run with a read-only token. | |
| permissions: | |
| contents: read | |
| # PR builds get a fast, per-ref cancellable group; the deploy job uses the global | |
| # `pages` group (set on the job) so concurrent deploys serialize. | |
| concurrency: | |
| group: docs-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - name: Install package + docs deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -e ".[docs,notebook]" | |
| - name: Generate gallery (runs the showcase headless) | |
| env: | |
| MPLBACKEND: Agg | |
| run: python docs/generate_gallery.py | |
| - name: Build site | |
| run: mkdocs build --strict | |
| - name: Upload Pages artifact | |
| uses: actions/upload-pages-artifact@v3 | |
| with: | |
| path: site | |
| # Deploy only from main; PRs build (above) to catch breakage without publishing. | |
| deploy: | |
| if: github.ref == 'refs/heads/main' && github.event_name != 'pull_request' | |
| needs: build | |
| runs-on: ubuntu-latest | |
| # Elevated scopes live here only — never on PR builds. | |
| permissions: | |
| pages: write | |
| id-token: write | |
| concurrency: | |
| group: pages | |
| cancel-in-progress: false | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |