2024-07-19 08:56:10 +00:00
|
|
|
---
|
|
|
|
name: CodSpeed Benchmarks
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
tags: ["*"]
|
2024-07-22 05:15:44 +00:00
|
|
|
paths:
|
2024-07-24 10:56:36 +00:00
|
|
|
- src/**.py
|
2024-07-22 05:15:44 +00:00
|
|
|
- bench/**
|
2024-08-01 06:14:08 +00:00
|
|
|
- .github/workflows/codspeed.yml
|
2024-07-19 08:56:10 +00:00
|
|
|
pull_request:
|
2024-07-22 05:15:44 +00:00
|
|
|
paths:
|
2024-07-24 10:56:36 +00:00
|
|
|
- src/**.py
|
2024-07-22 05:15:44 +00:00
|
|
|
- bench/**
|
2024-08-01 06:14:08 +00:00
|
|
|
- .github/workflows/codspeed.yml
|
2024-07-19 08:56:10 +00:00
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
|
|
|
|
env:
|
|
|
|
FORCE_COLOR: "1"
|
|
|
|
PIP_DISABLE_PIP_VERSION_CHECK: "1"
|
|
|
|
PIP_NO_PYTHON_VERSION_WARNING: "1"
|
|
|
|
|
|
|
|
permissions: {}
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
codspeed:
|
|
|
|
name: Run CodSpeed benchmarks
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-python@v5
|
|
|
|
with:
|
|
|
|
python-version-file: .python-version-default
|
|
|
|
cache: pip
|
|
|
|
- run: python -Im pip install tox-uv
|
|
|
|
|
|
|
|
- name: Run CodSpeed benchmarks
|
2024-08-01 08:13:07 +00:00
|
|
|
uses: CodSpeedHQ/action@v3
|
2024-07-19 08:56:10 +00:00
|
|
|
with:
|
|
|
|
token: ${{ secrets.CODSPEED_TOKEN }}
|
|
|
|
run: tox run -e codspeed
|