feedtrust-blockchain-backed.../test.sh

12 lines
355 B
Bash
Executable File

#!/usr/bin/env bash
set -e
# Ensure Python can import the local package when tests run in varied environments
# By default, add the repository root to PYTHONPATH so `import feedtrust.*` resolves
ROOT_DIR="/workspace/repo"
export PYTHONPATH="$ROOT_DIR:${PYTHONPATH:-}"
echo "Running tests..."
pytest -q
echo "Building package..."
python -m build
echo "OK"