diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml new file mode 100644 index 0000000..08d3c7f --- /dev/null +++ b/.github/workflows/codspeed.yml @@ -0,0 +1,25 @@ +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 || '' }} + UV_PYTHON_PREFERENCE: only-managed + with: + runner-version: 3.1.0-beta.2 + run: uv run pytest --codspeed --codspeed-max-time 10 -vs tests.py