We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc3388d commit da64194Copy full SHA for da64194
.github/workflows/codspeed.yml
@@ -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
29
+ mode: instrumentation
30
+ run: hatch run test:run-benchmark
0 commit comments