nebulaforge-offline-resilie.../test.sh

13 lines
338 B
Bash

#!/usr/bin/env bash
set -euo pipefail
# MVP sanity: run packaging and tests
export PYTHONPATH="${PWD}${PYTHONPATH:+:${PYTHONPATH}}:/usr/local/lib/python3.11/site-packages"
echo "==> Building package (Python) ..."
python3 -m build
echo "==> Running tests (pytest) ..."
pytest -q
# If we reach here, tests passed
echo "All tests passed."