17 lines
337 B
Bash
17 lines
337 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo "Running tests..."
|
|
pytest -q
|
|
|
|
echo "Building package..."
|
|
python3 -m build
|
|
|
|
echo "All tests passed and package built."
|
|
if [ -f READY_TO_PUBLISH ]; then
|
|
echo "READY_TO_PUBLISH flag detected. Proceeding with publish."
|
|
else
|
|
echo "ERROR: READY_TO_PUBLISH flag not found. Aborting."
|
|
exit 1
|
|
fi
|