-
Notifications
You must be signed in to change notification settings - Fork 4.6k
45 lines (42 loc) · 1.12 KB
/
codspeed.yml
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
39
40
41
42
43
44
45
name: Run benchmarks
on:
push:
paths:
- "src/backend/base/**"
- "src/backend/tests/performance/**"
branches:
- "main" # or "master"
pull_request:
paths:
- "src/backend/base/**"
- "src/backend/tests/performance/**"
- "!src/backend/base/langflow/components/**"
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
codspeed:
name: Run benchmarks
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.13"
steps:
- name: Check out the code at a specific ref
uses: actions/checkout@v4
- name: "Setup Environment"
uses: ./.github/actions/setup-uv
- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: |
uv run pytest src/backend/tests \
--ignore=src/backend/tests/integration \
--codspeed \
-m "not api_key_required" \
-n auto
- name: Minimize uv cache
run: uv cache prune --ci