We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9c7c335 + 0c8f5c6 commit 2e51b04Copy full SHA for 2e51b04
.github/workflows/codspeed.yml
@@ -0,0 +1,24 @@
1
+name: CodSpeed
2
+
3
+on:
4
+ push:
5
+ branches:
6
+ - main # Run on pushes to the main branch
7
+ pull_request: # Run on all pull requests
8
9
+jobs:
10
+ codspeed:
11
+ name: Run benchmarks
12
+ runs-on: ubuntu-latest
13
+ steps:
14
+ - uses: actions/checkout@v2
15
+ - name: Setup Python
16
+ uses: actions/setup-python@v2
17
+ with:
18
+ python-version: "3.13"
19
+ - name: Install dependencies
20
+ run: pip install pytest pytest-codspeed
21
+ - uses: CodSpeedHQ/action@v3
22
23
+ run: pytest tests/ --codspeed
24
+ token: ${{ secrets.CODSPEED_TOKEN }} # Optional for public repositories
0 commit comments