Skip to content

Commit

Permalink
feat: add workflow to measure walltime in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
art049 committed Oct 30, 2024
1 parent f2c2b34 commit 829d7d6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/codspeed.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
on:
push:

jobs:
codspeed:
runs-on: codspeed-macro
strategy:
matrix:
python-version: ["3.12", "3.13"]
include:
- { python-version: "3.13t", gil: "1" }
- { python-version: "3.13t", gil: "0" }
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v3
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- uses: CodSpeedHQ/action@v3
env:
PYTHON_GIL: ${{ matrix.gil || '' }}
with:
runner-version: 3.1.0-beta.2
run: uv run pytest --codspeed --codspeed-max-time 10 -vs tests.py

0 comments on commit 829d7d6

Please sign in to comment.