15 lines
414 B
Bash
15 lines
414 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
# Test script for SunHub MVP
|
|
# 1) Run pytest tests
|
|
# 2) Build the Python package to ensure packaging metadata and directory structure compile
|
|
|
|
echo "Running test suite..."
|
|
pytest -q || { echo "Tests failed"; exit 1; }
|
|
|
|
echo "Building package (python3 -m build)..."
|
|
python3 -m build || { echo "Build failed"; exit 1; }
|
|
|
|
echo "All tests passed and package built successfully."
|