-
-
Notifications
You must be signed in to change notification settings - Fork 136
42 lines (37 loc) · 1.06 KB
/
codspeed.yml
File metadata and controls
42 lines (37 loc) · 1.06 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
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@v6.0.0 # Use a fixed version
with:
persist-credentials: false
- uses: actions/setup-python@v6.1.0 # Use a fixed version
with:
python-version: "3.11" # Assuming Python 3.11, adjust if needed
- uses: hynek/setup-cached-uv@v2.3.0 # Use a fixed version
- name: Run CodSpeed benchmarks
uses: CodSpeedHQ/action@v4.4.1 # Use a fixed version
with:
mode: instrumentation
run: |
uv pip install pytest-codspeed
uv run pytest --codspeed bench/