diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4bb47b7..4be09ce 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,7 +55,7 @@ jobs: - name: Install dependencies with pytest${{ matrix.pytest-version }} run: | if [ "${{ matrix.config }}" == "valgrind" ]; then - export PYTEST_CODSPEED_FORCE_EXTENSION=1 + export PYTEST_CODSPEED_FORCE_EXTENSION_BUILD=1 fi uv sync --all-extras --dev --locked --verbose uv pip install "pytest${{ matrix.pytest-version }}" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8ffe132..3b0e93d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -33,6 +33,8 @@ jobs: - name: Build the library run: uv build --wheel --out-dir dist/ + env: + PYTEST_CODSPEED_FORCE_EXTENSION_BUILD: 1 - uses: actions/upload-artifact@v4 with: diff --git a/setup.py b/setup.py index 0325dba..e04ca78 100644 --- a/setup.py +++ b/setup.py @@ -23,7 +23,9 @@ "arm64", ] -IS_EXTENSION_REQUIRED = os.environ.get("PYTEST_CODSPEED_FORCE_EXTENSION") is not None +IS_EXTENSION_REQUIRED = ( + os.environ.get("PYTEST_CODSPEED_FORCE_EXTENSION_BUILD") is not None +) if IS_EXTENSION_REQUIRED and not IS_EXTENSION_BUILDABLE: raise ValueError( "The extension is required but the current platform is not supported"