Skip to content

feat: update python (#84) #74

feat: update python (#84)

feat: update python (#84) #74

Workflow file for this run

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