tests.sh 244 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. cd "$(dirname "$0")"
  4. if [ -f .env ]; then
  5. # shellcheck disable=SC1091
  6. source .env
  7. fi
  8. if [ -f .venv/bin/activate ]; then
  9. # shellcheck disable=SC1091
  10. source .venv/bin/activate
  11. fi
  12. python -m pytest