diff --git a/.github/workflows/codspeed.yml b/.github/workflows/codspeed.yml index e4f87888..db4ba35a 100644 --- a/.github/workflows/codspeed.yml +++ b/.github/workflows/codspeed.yml @@ -16,6 +16,8 @@ jobs: uses: actions/setup-python@v5 with: python-version: "3.13" + - name: Generate virtual environment + run: python -m venv .venv - name: Build Python wrapper uses: PyO3/maturin-action@v1 with: @@ -23,5 +25,7 @@ jobs: args: --extras dev -m crates/lox-space/Cargo.toml - uses: CodSpeedHQ/action@v3 with: - run: pytest crates/lox-space/tests/ --codspeed + run: | + . .venv/bin/activate + pytest crates/lox-space/tests/ --codspeed token: ${{ secrets.CODSPEED_TOKEN }} # Optional for public repositories