-
-
Notifications
You must be signed in to change notification settings - Fork 133
38 lines (32 loc) · 1.02 KB
/
codspeed.yml
File metadata and controls
38 lines (32 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
name: CodSpeed Benchmarks
on:
push:
branches: [main]
tags: ["*"]
paths:
- src/**.py
- bench/**
- .github/workflows/codspeed.yml
pull_request:
paths:
- src/**.py
- bench/**
- .github/workflows/codspeed.yml
workflow_dispatch:
permissions:
contents: read # required for actions/checkout
id-token: write # required for OIDC authentication with CodSpeed
jobs:
codspeed:
name: Run CodSpeed benchmarks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
persist-credentials: false
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817 # v2.3.0
- name: Run CodSpeed benchmarks
uses: CodSpeedHQ/action@346a2d8a8d9d38909abd0bc3d23f773110f076ad # v4.4.1
with:
mode: simulation
run: uv run --python 3.14 --with pytest-codspeed --with pytest-benchmark --group test --extra msgspec --extra orjson pytest --codspeed bench/