Skip to content

Apache DataFusion SQL Query Engine

ARROW-7032: [Release] Run the python unit tests in the release verification script

Krisztián Szűcs017cfcb0d71b
diff --git a/dev/release/verify-release-candidate.sh b/dev/release/verify-release-candidate.sh
index 1ac6bb5772..ba75dbff70 100755
--- a/dev/release/verify-release-candidate.sh
+++ b/dev/release/verify-release-candidate.sh
@@ -51,6 +51,7 @@ set -x
set -o pipefail
SOURCE_DIR="$(cd "$(dirname "${BASH_SOURCE[0]:-$0}")" && pwd)"
+ARROW_DIR="$(dirname $(dirname ${SOURCE_DIR}))"
detect_cuda() {
if ! (which nvcc && which nvidia-smi) > /dev/null; then
@@ -569,9 +570,13 @@ test_linux_wheels() {
continue
fi
+ # check the mandatory and optional imports
pip install python-rc/${VERSION}-rc${RC_NUMBER}/pyarrow-${VERSION}-cp${py_arch//[mu.]/}-cp${py_arch//./}-manylinux${ml_spec}_x86_64.whl
-
check_python_imports py_arch
+
+ # execute the python unit tests
+ conda install -y --file ${ARROW_DIR}/ci/conda_env_python.yml pandas
+ pytest --pyargs pyarrow
done
conda deactivate
@@ -595,10 +600,15 @@ test_macos_wheels() {
macos_suffix="${macos_suffix}_10_9_x86_64"
;;
esac
- pip install python-rc/${VERSION}-rc${RC_NUMBER}/pyarrow-${VERSION}-cp${py_arch//[m.]/}-cp${py_arch//./}-${macos_suffix}.whl
+ # check the mandatory and optional imports
+ pip install python-rc/${VERSION}-rc${RC_NUMBER}/pyarrow-${VERSION}-cp${py_arch//[m.]/}-cp${py_arch//./}-${macos_suffix}.whl
check_python_imports py_arch
+ # execute the python unit tests
+ conda install -y --file ${ARROW_DIR}/ci/conda_env_python.yml pandas
+ pytest --pyargs pyarrow
+
conda deactivate
done
}