feat: update python (#84) #74
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: Documentation 📔 | |
| on: | |
| push: | |
| branches: [main] | |
| permissions: | |
| contents: write | |
| jobs: | |
| docs: | |
| runs-on: instadeep-ci | |
| container: | |
| image: python:3.11-slim-bullseye | |
| steps: | |
| - name: Git setup | |
| run: | | |
| apt-get update && apt-get install -y \ | |
| coreutils \ | |
| git | |
| git config --system --add safe.directory $GITHUB_WORKSPACE | |
| - name: Checkout code 📦 | |
| uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v6 | |
| - name: Build documentation | |
| run: | | |
| uv sync --group dev --group jax_md | |
| uv run sphinx-build -b html docs/source/ _build/ | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v3 | |
| if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }} | |
| with: | |
| publish_branch: gh-pages | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: _build/ | |
| force_orphan: true |