-
Notifications
You must be signed in to change notification settings - Fork 0
65 lines (64 loc) · 2.15 KB
/
Copy pathci.yml
File metadata and controls
65 lines (64 loc) · 2.15 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
name: ci
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
jobs:
build:
runs-on: ubuntu-latest
env:
FORCE_JAVASCRIPT_ACTIONS_TO_NODE24: "true"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "22"
- uses: actions/setup-go@v5
with:
go-version: "1.25.x"
- name: Install build deps
run: sudo apt-get update && sudo apt-get install -y build-essential
- name: Test
run: CGO_ENABLED=1 go test ./...
working-directory: .
- name: Reset eval index state
run: rm -rf .codehelper
working-directory: .
- name: Build index for eval
run: CGO_ENABLED=1 go run ./cmd/codehelper analyze
working-directory: .
- name: Qrels core regression gate
run: CGO_ENABLED=1 go test ./internal/bench/ -run QrelsCore -count=1 -v
working-directory: .
- name: Real-index NL retrieval gate
run: CGO_ENABLED=1 go test ./internal/retrieval/ -run RealIndex -count=1 -v
working-directory: .
- name: Agent discovery harness tests
run: node --test scripts/lib/agent-discovery.test.mjs
working-directory: .
- name: Write CI eval suite
run: |
cat > /tmp/ci-eval-suite.json <<'EOF'
{
"prompts": [
{
"prompt_id": "intake_project_brief",
"must_contain": ["PRIMARY OUTCOME", "ASSUMPTION:", "[UNCERTAIN]"]
},
{
"prompt_id": "planning_contract",
"must_contain": ["VERIFICATION", "ROLLBACK", "FAILURE CONDITIONS", "[UNCERTAIN]"]
},
{
"prompt_id": "agent_guardrails",
"must_contain": ["argv", "graph tools", "fail closed", "[UNCERTAIN]"],
"must_not_contain": ["console.log", "FIXME"]
}
]
}
EOF
working-directory: .
- name: Eval gate
run: CGO_ENABLED=1 go run ./cmd/codehelper eval --repo codehelper --suite /tmp/ci-eval-suite.json
working-directory: .