-
-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (35 loc) · 873 Bytes
/
Copy pathcodspeed.yml
File metadata and controls
42 lines (35 loc) · 873 Bytes
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
name: Benchmarks
on:
push:
branches:
- master
pull_request:
paths:
- '**.py'
- '.github/workflows/codspeed.yml'
- 'pyproject.toml'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
PYTHONHASHSEED: "0"
jobs:
benchmarks:
name: Run benchmarks
runs-on: ubuntu-24.04
timeout-minutes: 30
steps:
- uses: actions/checkout@v6.0.2
with:
fetch-depth: 1
- uses: actions/setup-python@v6.2.0
with:
python-version: "3.14"
- uses: astral-sh/setup-uv@v7
- name: Run benchmarks
uses: CodSpeedHQ/action@v4
with:
token: ${{ secrets.CODSPEED_TOKEN }}
mode: "simulation"
run: uvx --from=pytest --with=".[bench]" pytest benchmarks/test_generation.py --codspeed