tests.sh 326 B

12345678910111213141516
  1. #!/usr/bin/env bash
  2. set -euo pipefail
  3. export PYTHONPATH="${PYTHONPATH:-}:$(pwd)/src:$(pwd)"
  4. if [ -f .venv/bin/activate ]; then
  5. # shellcheck disable=SC1091
  6. source .venv/bin/activate
  7. fi
  8. echo "Running unit pytest suite (hermes-mcp)..."
  9. if command -v pytest >/dev/null 2>&1; then
  10. pytest -q
  11. else
  12. python3 -m pytest -q
  13. fi