From 299b01af0df00bce7270d66d6a545d16e3790034 Mon Sep 17 00:00:00 2001 From: Helge Eichhorn Date: Tue, 19 Nov 2024 20:48:35 +0100 Subject: [PATCH] try with venv --- .github/workflows/codspeed.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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