Skip to content

Commit 67ed1d7

Browse files
authored
Create codspeed.yml
Add codSpeedHQ workflow
1 parent 239ec55 commit 67ed1d7

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/workflows/codspeed.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: codspeed-benchmarks
2+
3+
on:
4+
# Run on pushes to the main branch
5+
push:
6+
branches:
7+
- "master" # or "main"
8+
# Run on pull requests
9+
pull_request:
10+
# `workflow_dispatch` allows CodSpeed to trigger backtest
11+
# performance analysis in order to generate initial data.
12+
workflow_dispatch:
13+
14+
jobs:
15+
benchmarks:
16+
runs-on: ubuntu-latest
17+
steps:
18+
- uses: actions/checkout@v3
19+
# ...
20+
# Setup your environment here:
21+
# - Configure your Python/Rust/Node version
22+
# - Install your dependencies
23+
# - Build your benchmarks (if using a compiled language)
24+
# ...
25+
- name: Run benchmarks
26+
uses: CodSpeedHQ/action@v1
27+
with:
28+
token: ${{ secrets.CODSPEED_TOKEN }}
29+
run: "<Insert your benchmark command here>"

0 commit comments

Comments
 (0)