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
|
2024-11-02 08:24:37 +00:00
|
|
|
with:
|
|
|
|
persist-credentials: false
|
2024-07-19 08:56:10 +00:00
|
|
|
- uses: actions/setup-python@v5
|
|
|
|
with:
|
|
|
|
python-version-file: .python-version-default
|
2024-11-02 08:24:37 +00:00
|
|
|
- uses: hynek/setup-cached-uv@v2
|
2024-07-19 08:56:10 +00:00
|
|
|
|
|
|
|
- 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 }}
|
2024-11-02 08:24:37 +00:00
|
|
|
run: uvx --with tox-uv tox run -e codspeed
|