From b399a0ffe0170d304324d0a6a62456e286c19d59 Mon Sep 17 00:00:00 2001 From: Bruno Postle Date: Thu, 9 Apr 2026 07:31:19 +0100 Subject: [PATCH] tests: mathutils tests need python 3.12+ --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index fef4a28867..38cda6b95d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -270,9 +270,12 @@ jobs: cd ../ifctester && make test || ERROR=1 make build-ids-docs || ERROR=1 # Run mathutils related tests at the end to ensure no other code is relying on mathutils. + # mathutils only has pre-built wheels for Python 3.12+; skip on older versions. cd ../ifcopenshell-python - pip install mathutils - make test-mathutils || ERROR=1 + if python -c "import sys; sys.exit(0 if sys.version_info >= (3, 12) else 1)"; then + pip install mathutils + make test-mathutils || ERROR=1 + fi if [ $ERROR -ne 0 ]; then echo "One or more tests failed"; exit 1;