#!/bin/sh
set -efu

PYS=${PYS:-"$(py3versions -r 2>/dev/null)"}
TESTPKG=${TESTPKG:-zarr}

cd "$AUTOPKGTEST_TMP"

for py in $PYS; do
    echo "=== $py ==="
    $py -m pytest --pyargs ${TESTPKG} -k "not [static_flat] and not [static_nested] and not [static_flat_legacy] and not [static_nested_legacy]"
done
