#!/bin/sh
set -efu

pys="$(py3versions -r 2> /dev/null)"

cp -a docs_src tests "$AUTOPKGTEST_TMP"
cd "$AUTOPKGTEST_TMP"

for py in $pys; do
  echo "=== $py ==="
  $py -m pytest tests --ignore=tests/test_default_response_class.py --ignore-glob=tests/test_tutorial/test_security/test_tutorial005* --ignore=tests/test_response_by_alias.py -k 'not test_get_custom_response and not test_root and not test_async_testing and not test_path_operation_img' 2>&1
done
