18 lines
473 B
Bash
18 lines
473 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo "==> Installing build tools (if needed)"
|
|
python3 -m pip install --upgrade build
|
|
|
|
echo "==> Running tests (pytest)"
|
|
# Ensure the repository root is on PYTHONPATH so imports like
|
|
# spacesafeml_certification_benchmark_and_ can be resolved regardless of
|
|
# how pytest collects tests.
|
|
export PYTHONPATH="/workspace/repo${PYTHONPATH:+:${PYTHONPATH}}"
|
|
pytest -q
|
|
|
|
echo "==> Building package (wheel/source)"
|
|
python3 -m build
|
|
|
|
echo "OK"
|