23 lines
500 B
Bash
23 lines
500 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Lightweight test runner for the MVP
|
|
|
|
echo "Running tests..."
|
|
|
|
# Ensure the package is importable by installing in editable mode first
|
|
echo "Installing package in editable mode..."
|
|
python3 -m pip install -e .
|
|
|
|
# Prefer pytest if available; otherwise fall back to unittest discovery
|
|
if command -v pytest >/dev/null 2>&1; then
|
|
pytest -q || true
|
|
else
|
|
python3 -m unittest discover -q
|
|
fi
|
|
|
|
echo "Building package..."
|
|
python3 -m build
|
|
|
|
echo "All tests executed."
|