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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

35 lines
1.1 KiB
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"
2024-03-02 15:36:19 +03:00
if [ -f /opt/homebrew/lib/libfribidi.dylib ]; then
sudo cp /opt/homebrew/lib/libfribidi.dylib /usr/local/lib
fi
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
2024-07-09 23:11:11 +03:00
if [ "${AUDITWHEEL_POLICY::9}" != "musllinux" ]; then
2024-07-09 23:11:11 +03:00
# TODO Update condition when NumPy supports free-threading
if [ $(python3 -c "import sysconfig;print(sysconfig.get_config_var('Py_GIL_DISABLED'))") == "1" ]; then
python3 -m pip install numpy --index-url https://pypi.anaconda.org/scientific-python-nightly-wheels/simple
else
2023-11-14 15:23:46 +03:00
python3 -m pip install numpy
2024-07-09 23:11:11 +03:00
fi
2023-11-14 15:23:46 +03:00
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