-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (44 loc) · 1.18 KB
/
benchmarks.yml
File metadata and controls
52 lines (44 loc) · 1.18 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
name: Benchmarks
on:
pull_request:
branches:
- "master"
paths:
- "agent_assembly/**/*.py"
- "test/bench/**/*.py"
- ".github/workflows/benchmarks.yml"
- "pyproject.toml"
- "uv.lock"
jobs:
benchmark:
name: Run performance benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install uv
uses: astral-sh/setup-uv@v7
with:
enable-cache: true
- name: Set up Python
run: uv python install 3.13
- name: Install dependencies
run: uv sync --group dev
- name: Run benchmark suite
run: |
uv run pytest test/bench/ \
--benchmark-only \
--benchmark-disable-gc \
--benchmark-json=benchmark-results.json \
-v
- name: Run latency contract tests
run: |
uv run pytest test/bench/test_latency_contracts.py \
--benchmark-disable \
-v
- name: Upload benchmark results
if: always()
uses: actions/upload-artifact@v7
with:
name: benchmark-results
path: benchmark-results.json
retention-days: 30