Skip to content

chore: grouped weekly Dependabot (root manifests only) #36

chore: grouped weekly Dependabot (root manifests only)

chore: grouped weekly Dependabot (root manifests only) #36

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install package
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev]"
- name: Run unit tests
run: python -m pytest -q
- name: Check CLI help
run: |
python -m math_to_manim.cli --help
python -m math_to_manim.cli generate --help
python -m math_to_manim.cli recover-render --help
python -m math_to_manim.cli eval-suite --help
- name: Compile package
run: python -m compileall -q math_to_manim
- name: Parse eval YAML
run: |
python - <<'PY'
from pathlib import Path
import yaml
for path in Path("evals").glob("*.yaml"):
payload = yaml.safe_load(path.read_text(encoding="utf-8"))
if not isinstance(payload, dict):
raise SystemExit(f"{path} did not parse to a mapping")
if not payload.get("cases"):
raise SystemExit(f"{path} has no cases")
PY
- name: Run deterministic pipeline smoke
run: >
python -m math_to_manim.cli generate
"Explain why derivatives are slopes"
--deterministic
--no-render
--runs-dir /tmp/m2m2-smoke
- name: Run prompt eval suite
run: >
python -m math_to_manim.cli eval-suite
evals/prompt_suite.yaml
--runs-dir /tmp/m2m2-evals
render-smoke:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
continue-on-error: true
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install system render dependencies
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg libcairo2-dev libpango1.0-dev texlive-latex-base texlive-latex-extra dvisvgm
- name: Install render package
run: |
python -m pip install --upgrade pip
python -m pip install -e ".[dev,render]"
- name: Run low-quality render smoke
run: >
python -m math_to_manim.cli generate
"Explain why derivatives are slopes"
--deterministic
--quality l
--runs-dir /tmp/m2m2-render-smoke