Skip to content

Commit de25cf1

Browse files
committed
test: EvalCI smoke test
0 parents  commit de25cf1

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed

.github/workflows/eval.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: EvalCI Smoke Test
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
eval:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: SynapseKit/evalci@v1
13+
with:
14+
path: tests/evals
15+
threshold: "0.80"
16+
extras: "openai"

README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# EvalCI E2E Test Repo
2+
3+
Smoke test for [EvalCI](https://github.com/SynapseKit/evalci).

tests/evals/eval_smoke.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
from synapsekit import eval_case
2+
3+
@eval_case(min_score=0.80)
4+
async def eval_passing():
5+
"""Simulates a passing eval case — no API key needed."""
6+
return {"score": 0.92, "cost_usd": 0.001, "latency_ms": 150}
7+
8+
@eval_case(min_score=0.70)
9+
async def eval_another_passing():
10+
return {"score": 0.85, "cost_usd": 0.002, "latency_ms": 300}

0 commit comments

Comments
 (0)