Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 14 additions & 6 deletions .github/workflows/routing-evals.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ on:
workflow_dispatch:
inputs:
runs:
description: Runs per case
default: "3"
description: Runs per case (1-99)
type: number
default: 3

permissions:
contents: read
Expand All @@ -35,10 +36,17 @@ jobs:
run: npm install -g @anthropic-ai/claude-code
- name: Run routing evals
if: env.ANTHROPIC_API_KEY != ''
run: >-
claude plugin eval . --tag routing --ablation none
--runs ${{ inputs.runs || '1' }} -j 6 --max-cost-usd 40
--trust-plugin --no-publish --json evals/results/routing.json
# Pass the input through an env var, never ${{ }} inside run:, so its text is never parsed as shell.
env:
RUNS: ${{ inputs.runs || 1 }}
run: |
if ! [[ "$RUNS" =~ ^[1-9][0-9]?$ ]]; then
echo "::error::runs must be a whole number from 1 to 99, got: $RUNS"
exit 1
fi
claude plugin eval . --tag routing --ablation none \
--runs "$RUNS" -j 6 --max-cost-usd 40 \
--trust-plugin --no-publish --json evals/results/routing.json
- uses: actions/upload-artifact@v4
if: always() && env.ANTHROPIC_API_KEY != ''
with:
Expand Down
Loading