Skip to content

Commit 3e853e2

Browse files
committed
chore(ci): force native extension build in CI
1 parent cc868a4 commit 3e853e2

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ jobs:
5555
- name: Install dependencies with pytest${{ matrix.pytest-version }}
5656
run: |
5757
if [ "${{ matrix.config }}" == "valgrind" ]; then
58-
export PYTEST_CODSPEED_FORCE_EXTENSION=1
58+
export PYTEST_CODSPEED_FORCE_EXTENSION_BUILD=1
5959
fi
6060
uv sync --all-extras --dev --locked --verbose
6161
uv pip install "pytest${{ matrix.pytest-version }}"

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ jobs:
3333

3434
- name: Build the library
3535
run: uv build --wheel --out-dir dist/
36+
env:
37+
PYTEST_CODSPEED_FORCE_EXTENSION_BUILD: 1
3638

3739
- uses: actions/upload-artifact@v4
3840
with:

setup.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@
2323
"arm64",
2424
]
2525

26-
IS_EXTENSION_REQUIRED = os.environ.get("PYTEST_CODSPEED_FORCE_EXTENSION") is not None
26+
IS_EXTENSION_REQUIRED = (
27+
os.environ.get("PYTEST_CODSPEED_FORCE_EXTENSION_BUILD") is not None
28+
)
2729
if IS_EXTENSION_REQUIRED and not IS_EXTENSION_BUILDABLE:
2830
raise ValueError(
2931
"The extension is required but the current platform is not supported"

0 commit comments

Comments
 (0)