Bump sax + ruff + pyright refactoring #26
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: | |
| workflow_dispatch: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Install UV | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Create Venv | |
| run: uv sync --all-extras | |
| - name: Run notebooks | |
| run: find examples -name "*.ipynb" -not -path "*/.ipynb_checkpoints/*" | xargs parallel uv run papermill {} {} -k python3 ':::' | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: examples | |
| path: ./examples | |
| docs: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - run | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Download Artifacts | |
| uses: actions/download-artifact@v4 | |
| with: | |
| name: examples | |
| path: ./examples | |
| - name: Install UV | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Create Venv | |
| run: uv sync --all-extras | |
| - name: Build docs | |
| run: make docs && touch docs/build/html/.nojekyll | |
| - name: Patch binder links | |
| run: find docs/build/html -name "*.html" | xargs sed -i 's|urlpath=tree/docs|urlpath=tree|g' | |
| - name: Patch colab links | |
| run: find docs/build/html -name "*.html" | xargs sed -i 's|/blob/main/docs/|/blob/main/|g' | |
| - name: Upload Artifacts | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: docs | |
| path: docs/build/html | |
| pages: | |
| runs-on: ubuntu-latest | |
| needs: | |
| - docs | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v3 | |
| - name: Download 'docs' artifact | |
| uses: actions/download-artifact@master | |
| with: | |
| name: docs | |
| path: docs/build/html | |
| - name: Deploy | |
| uses: JamesIves/github-pages-deploy-action@4.1.7 | |
| with: | |
| branch: pages | |
| folder: docs/build/html |