-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (41 loc) · 1.02 KB
/
benchmarks.yaml
File metadata and controls
48 lines (41 loc) · 1.02 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
name: Benchmarks
on:
push:
branches:
- main
pull_request:
types:
- opened
- synchronize
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
jobs:
benchmark:
name: Run benchmarks
runs-on: codspeed-macro
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Install project
run: uv sync --group test
- name: Run benchmarks
uses: CodSpeedHQ/action@v4
env:
RAY_ENABLE_UV_RUN_RUNTIME_ENV: 0
PLUGBOARD_IO_READ_TIMEOUT: 5.0
with:
mode: walltime
run: uv run pytest tests/benchmark/ --codspeed