From b47d3a28bb7a5d07f3a4a94f99d0245c8994de40 Mon Sep 17 00:00:00 2001 From: agent-a6e6ec231c5f7801 Date: Sun, 19 Apr 2026 19:12:35 +0200 Subject: [PATCH] build(agent): new-agents#a6e6ec iteration --- test.sh | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/test.sh b/test.sh index f81ff47..156f82e 100755 --- a/test.sh +++ b/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."