#!/bin/sh -e

pkg=python3-pandera

if [ "$AUTOPKGTEST_TMP" = "" ] ; then
    AUTOPKGTEST_TMP=$(mktemp -d /tmp/${pkg}-test.XXXXXX)
    trap "rm -rf ${AUTOPKGTEST_TMP}" 0 INT QUIT ABRT PIPE TERM
fi

cp -a tests "${AUTOPKGTEST_TMP}/"
cd "${AUTOPKGTEST_TMP}/"

# FIXME: We can't run $(py3versions -s) as long as python3-pandas is not available for Python3.15
for py in $(py3versions -d); do
    LC_ALL=C.UTF-8 ${py} -m pytest
done

echo "pandas-plink run-unit-test: OK"
