algebraic-portfolio-provena.../test.sh

14 lines
311 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# Ensure the repository root is on PYTHONPATH so tests can import the local package
export PYTHONPATH="$(pwd):${PYTHONPATH:-}"
echo "Running tests..."
pytest -q
echo "Building package (verify pyproject)..."
python3 -m build
echo "All tests passed and build completed."