diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index d6be9f64..7928499c 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -20,7 +20,6 @@ jobs: analyze: name: Analyze permissions: - contents: read # required for actions/checkout pull-requests: write # Required for bot comments id-token: write # Required for OIDC authentication with CodSpeed runs-on: "ubuntu-latest" @@ -42,7 +41,13 @@ jobs: with: version: "latest" enable-cache: true - python-version: "3.13" + + # N.B. codspeed interacts with some quite low-level Python internals and + # it doesn't always work well with the python-build-standalone releases + # provided via uv. We've been recommended by CodSpeed support to use this + # step. + - name: Set up Python + uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 - name: Run benchmarks uses: CodSpeedHQ/action@281164b0f014a4e7badd2c02cecad9b595b70537 # v4.11.1