langflow/.github/workflows/codspeed.yml
Gabriel Luiz Freitas Almeida e5969b2f18
ci: Update Codspeed workflow to exclude api_key_required tests and enable parallel execution (#4412)
fix: update codspeed workflow to exclude api_key_required tests and run in parallel
2024-11-06 12:52:29 +00:00

34 lines
840 B
YAML

name: Run benchmarks
on:
push:
branches:
- "main" # or "master"
pull_request:
workflow_dispatch:
jobs:
codspeed:
name: Run benchmarks
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.12"
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