mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 22:33:33 +00:00
tests: skip mathutils tests on Python < 3.13
mathutils only ships pre-built wheels for Python 3.13+ (verified against PyPI's file list); on CI's Python 3.11, `pip install mathutils` falls back to a slow/unreliable source build. Skip the mathutils-dependent tests when the interpreter is too old instead.
This commit is contained in:
@@ -270,9 +270,12 @@ jobs:
|
|||||||
cd ../ifctester && make test || ERROR=1
|
cd ../ifctester && make test || ERROR=1
|
||||||
make build-ids-docs || ERROR=1
|
make build-ids-docs || ERROR=1
|
||||||
# Run mathutils related tests at the end to ensure no other code is relying on mathutils.
|
# 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.13+; skip on older versions.
|
||||||
cd ../ifcopenshell-python
|
cd ../ifcopenshell-python
|
||||||
pip install mathutils
|
if python -c "import sys; sys.exit(0 if sys.version_info >= (3, 13) else 1)"; then
|
||||||
make test-mathutils || ERROR=1
|
pip install mathutils
|
||||||
|
make test-mathutils || ERROR=1
|
||||||
|
fi
|
||||||
if [ $ERROR -ne 0 ]; then
|
if [ $ERROR -ne 0 ]; then
|
||||||
echo "One or more tests failed";
|
echo "One or more tests failed";
|
||||||
exit 1;
|
exit 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user