Skip to content

Commit da64194

Browse files
committed
codspeed workflow
1 parent fc3388d commit da64194

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/codspeed.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: CodSpeed Benchmarks
2+
3+
on:
4+
push:
5+
branches:
6+
- "main" # or "master"
7+
pull_request:
8+
# `workflow_dispatch` allows CodSpeed to trigger backtest
9+
# performance analysis in order to generate initial data.
10+
workflow_dispatch:
11+
12+
jobs:
13+
benchmarks:
14+
name: Run benchmarks
15+
runs-on: ubuntu-latest
16+
steps:
17+
- uses: actions/checkout@v5
18+
with:
19+
fetch-depth: 0 # grab all branches and tags
20+
- name: Set up Python
21+
uses: actions/setup-python@v6
22+
- name: Install Hatch
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install hatch
26+
- name: Run the benchmarks
27+
uses: CodSpeedHQ/action@v4
28+
with:
29+
mode: instrumentation
30+
run: hatch run test:run-benchmark

0 commit comments

Comments
 (0)