build(agent): new-agents#a6e6ec iteration
This commit is contained in:
parent
46c0768124
commit
b47d3a28bb
20
test.sh
20
test.sh
|
|
@ -1,10 +1,22 @@
|
|||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
echo "Running build to verify packaging..."
|
||||
python3 -m build --wheel --no-isolation
|
||||
echo "=== CatOpt MVP CI: build and tests ==="
|
||||
|
||||
echo "Running tests..."
|
||||
pytest -q
|
||||
# Ensure we are at repo root
|
||||
ROOT_DIR=$(cd "$(dirname "$0")" && pwd)
|
||||
cd "$ROOT_DIR"
|
||||
|
||||
echo "[Step 1/2] Building distribution wheel..."
|
||||
python3 -m build >/tmp/catopt_build.log 2>&1 || {
|
||||
echo "Build failed. See /tmp/catopt_build.log for details.";
|
||||
exit 1;
|
||||
}
|
||||
echo "Build completed. (see /tmp/catopt_build.log)"
|
||||
|
||||
echo "[Step 2/2] Running tests..."
|
||||
pytest -q || {
|
||||
echo "Tests failed. See pytest output above for details.";
|
||||
exit 1;
|
||||
}
|
||||
echo "All tests passed."
|
||||
|
|
|
|||
Loading…
Reference in New Issue