-
-
Notifications
You must be signed in to change notification settings - Fork 332
39 lines (31 loc) · 900 Bytes
/
codspeed.yml
File metadata and controls
39 lines (31 loc) · 900 Bytes
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
name: codspeed-benchmarks
on:
push:
branches:
- "main" # or "master"
pull_request:
# `workflow_dispatch` allows CodSpeed to trigger backtest
# performance analysis in order to generate initial data.
workflow_dispatch:
jobs:
benchmarks:
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install uv
uses: astral-sh/setup-uv@v6
with:
version: "0.7.5"
- name: Install the project + deps.
run: |
echo "# Syncing Project + Installing project."
uv sync --dev --group test --verbose
- name: Run benchmarks
uses: CodSpeedHQ/action@v3.5.0
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: uv run pytest integration_tests --codspeed