Minor optimization #84
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Performance | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
benchmarks: | |
name: 📈 Benchmarks | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout project | |
id: checkout | |
uses: actions/checkout@v5 | |
- name: Set up Python 3.13 | |
id: setup-python | |
uses: actions/setup-python@v6 | |
with: | |
python-version: "3.13" | |
architecture: x64 | |
- name: Install uv | |
id: setup-uv | |
uses: astral-sh/setup-uv@v6 | |
- name: Install tox | |
id: install-tox | |
run: | | |
uv pip install --system tox tox-uv | |
- name: Run benchmarks with CodSpeed | |
id: run-benchmarks | |
uses: CodSpeedHQ/action@v4 | |
with: | |
mode: instrumentation | |
token: ${{ secrets.CODSPEED_TOKEN }} | |
run: tox -e py313 -- -k benchmarks --benchmark-enable --codspeed |