fixing python ci isssues

This commit is contained in:
matlabbe
2026-05-31 12:25:41 -07:00
parent 1d4d84272b
commit 71e8de2b1d
3 changed files with 20 additions and 0 deletions
+7
View File
@@ -88,6 +88,13 @@ jobs:
- name: Test - name: Test
working-directory: ${{github.workspace}}/build working-directory: ${{github.workspace}}/build
# PYTHONNOUSERSITE=1: prevent the embedded Python interpreter from
# loading numpy / other site-packages from ~/.local that were compiled
# against a different ABI than the build-time Python (causes numpy
# 1.x/2.x mismatch crashes in test_pydetector / test_pydescriptor /
# test_pymatcher).
env:
PYTHONNOUSERSITE: 1
run: | run: |
ctest -C ${{env.BUILD_TYPE}} --output-on-failure ctest -C ${{env.BUILD_TYPE}} --output-on-failure
ctest -C ${{env.BUILD_TYPE}} --output-on-failure --rerun-failed ctest -C ${{env.BUILD_TYPE}} --output-on-failure --rerun-failed
+5
View File
@@ -92,6 +92,11 @@ jobs:
- name: Test - name: Test
working-directory: ${{github.workspace}}/build working-directory: ${{github.workspace}}/build
# PYTHONNOUSERSITE=1: prevent the embedded Python interpreter from
# loading numpy / other site-packages from the user's site that were
# compiled against a different ABI than the build-time Python.
env:
PYTHONNOUSERSITE: 1
run: | run: |
ctest -C ${{env.BUILD_TYPE}} --output-on-failure ctest -C ${{env.BUILD_TYPE}} --output-on-failure
ctest -C ${{env.BUILD_TYPE}} --output-on-failure --rerun-failed ctest -C ${{env.BUILD_TYPE}} --output-on-failure --rerun-failed
+8
View File
@@ -77,6 +77,14 @@ jobs:
- name: Test - name: Test
working-directory: ${{github.workspace}}/build working-directory: ${{github.workspace}}/build
# PYTHONNOUSERSITE=1: prevent the embedded Python interpreter from
# loading numpy / other site-packages from %APPDATA%\Python that
# were compiled against a different ABI than the build-time Python
# (causes "Could not find platform independent libraries <prefix>"
# + numpy 1.x/2.x mismatch crashes in test_pydetector / test_pydescriptor
# / test_pymatcher).
env:
PYTHONNOUSERSITE: 1
run: | run: |
ctest -C ${{env.BUILD_TYPE}} --output-on-failure --timeout 300 ctest -C ${{env.BUILD_TYPE}} --output-on-failure --timeout 300
ctest -C ${{env.BUILD_TYPE}} --output-on-failure --timeout 300 --rerun-failed ctest -C ${{env.BUILD_TYPE}} --output-on-failure --timeout 300 --rerun-failed