-
Notifications
You must be signed in to change notification settings - Fork 4
68 lines (58 loc) · 1.9 KB
/
Copy pathagent-eval.yml
File metadata and controls
68 lines (58 loc) · 1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Agent Codebase Evaluation
on:
pull_request:
types: [opened, synchronize, reopened]
concurrency:
group: agent-eval-${{ github.ref }}
cancel-in-progress: true
jobs:
eval:
name: Evaluate agent changes
runs-on: ubuntu-latest
steps:
- name: Checkout base branch (baseline)
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
path: baseline-repo
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache Cargo registry (baseline)
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-${{ runner.os }}-${{ hashFiles('baseline-repo/Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}-
- name: Capture baseline metrics
working-directory: baseline-repo
run: |
mkdir -p ../.eval
bash scripts/evaluate-agent.sh --mode baseline --output-dir ../.eval
- name: Checkout PR branch (candidate)
uses: actions/checkout@v4
with:
path: candidate-repo
- name: Cache Cargo registry (candidate)
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
key: cargo-${{ runner.os }}-${{ hashFiles('candidate-repo/Cargo.lock') }}
restore-keys: cargo-${{ runner.os }}-
- name: Capture candidate metrics and emit verdict
working-directory: candidate-repo
run: |
bash scripts/evaluate-agent.sh \
--mode candidate \
--output-dir ../.eval \
--baseline-dir ../.eval
- name: Upload evaluation report
if: always()
uses: actions/upload-artifact@v4
with:
name: eval-report-${{ github.event.pull_request.number }}
path: .eval/verdict-report.json
retention-days: 30