Pillow/.github/workflows/wheels-test.sh

26 lines
663 B
Bash
Raw Normal View History

2023-11-14 15:23:46 +03:00
#!/bin/bash
set -e
if [[ "$OSTYPE" == "darwin"* ]]; then
brew install fribidi
export PKG_CONFIG_PATH="/usr/local/opt/openblas/lib/pkgconfig"
2023-11-15 05:21:38 +03:00
elif [ "${AUDITWHEEL_POLICY::9}" == "musllinux" ]; then
2023-11-14 15:23:46 +03:00
apk add curl fribidi
else
yum install -y fribidi
2023-11-14 15:23:46 +03:00
fi
2023-11-15 05:21:38 +03:00
if [ "${AUDITWHEEL_POLICY::9}" != "musllinux" ]; then
2023-11-14 15:23:46 +03:00
python3 -m pip install numpy
fi
if [ ! -d "test-images-main" ]; then
curl -fsSL -o pillow-test-images.zip https://github.com/python-pillow/test-images/archive/main.zip
unzip pillow-test-images.zip
mv test-images-main/* Tests/images
fi
# Runs tests
python3 selftest.py
python3 -m pytest Tests/check_wheel.py
2023-11-14 15:23:46 +03:00
python3 -m pytest