Repository navigation
53 lines (41 loc) · 1.5 KB
/
Copy pathci.yml
File metadata and controls
53 lines (41 loc) · 1.5 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
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --locked --all-extras --python ${{ matrix.python-version }}
- name: Confirm Python version
run: |
uv run python --version
uv run python -c "import sys; print(f'Running Python {sys.version}'); assert sys.version.startswith('${{ matrix.python-version }}')"
- name: Check plugin contracts
run: uv run python .github/scripts/plugin_contracts.py
- name: List registered plugins
run: uv run harness list-plugins
- name: Run pytest with coverage
run: uv run pytest --cov=harness --cov-report=xml
- name: Validate benchmarks
run: |
uv run harness validate examples/basic/benchmark.yaml
uv run harness validate benchmarks/examples/customer_support.yaml
uv run harness validate benchmarks/examples/code_generation.yaml
- name: Run sample evaluation
run: uv run harness evaluate examples/basic/benchmark.yaml