Skip to content

Commit

Permalink
ci: Add workflow to run benchmark manually (#839)
Browse files Browse the repository at this point in the history
  • Loading branch information
gmuloc authored Sep 27, 2024
1 parent 2214ff0 commit f5d5e4d
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
---
name: Run benchmarks manually
on:
workflow_dispatch:

jobs:
benchmarks:
name: Benchmark ANTA for Python 3.12
runs-on: ubuntu-latest
needs: [test-python]
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: pip install .[dev]
- name: Run benchmarks
uses: CodSpeedHQ/action@v3
with:
token: ${{ secrets.CODSPEED_TOKEN }}
run: pytest --codspeed --no-cov --log-cli-level INFO tests/benchmark

0 comments on commit f5d5e4d

Please sign in to comment.