#!/bin/sh

set -efu
pythons=$(py3versions -s 2>/dev/null)
cp -r dxtbx/tests dxtbx/conftest.py "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"
for py in $pythons; do
    echo "Testing dxtbx with $py:"
    $py -m pytest \
        --ignore tests/nexus/test_build_dxtbx_models.py
done
