Skip to content

Separate API and CLI execution routes #116

Separate API and CLI execution routes

Separate API and CLI execution routes #116

Workflow file for this run

name: CI — unit tests and verifier calibration
on:
push:
branches: [main]
pull_request:
env:
PR_REF: v0.6.0
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: "3.12"
- name: Install dependencies
run: pip install -r benchmark/requirements.txt
- name: Run unit tests (judgment + non-integration)
run: pytest -v -m "not integration"
# Calibration needs the real `pred` binary (Rust, built from problem-reductions at
# PR_REF). The bare runner has no pred, so run it inside the scoring image — the same
# pinned-pred environment used to score submissions. The image's default CMD is the
# calibration self-test. GHA cache is shared with score-from-r2.yml.
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v4
- name: Build scoring image (pred + verifier)
uses: docker/build-push-action@v7
with:
context: .
file: docker/Dockerfile
target: runtime
build-args: PR_REF=${{ env.PR_REF }}
load: true
tags: prb-scoring:latest
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run verifier calibration (known-answer fixtures, in-image)
run: docker run --rm --network none prb-scoring:latest