flaky fixes

This commit is contained in:
matlabbe
2026-06-06 11:42:03 -07:00
parent 1ec535473f
commit 0fe9718c28
4 changed files with 17 additions and 11 deletions
+7 -3
View File
@@ -77,13 +77,17 @@ jobs:
- name: Test
working-directory: ${{github.workspace}}/build
# PYTHONHOME points the embedded interpreter at vcpkg's bundled
# Python install (where Lib/, DLLs/ live). Without it Python emits
# "Could not find platform independent libraries <prefix>" at init
# and runs without a stdlib, breaking every numpy import.
# 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).
# (numpy 1.x/2.x mismatch crashes in test_pydetector /
# test_pydescriptor / test_pymatcher).
env:
PYTHONHOME: ${{env.VCPKG_EXPORT_PATH}}/installed/x64-windows-release/tools/python3
PYTHONNOUSERSITE: 1
run: |
ctest -C ${{env.BUILD_TYPE}} --output-on-failure --timeout 300