#!/usr/bin/env bash set -euo pipefail echo "Running tests..." pytest -q || true echo "Installing package in editable mode..." pip install -e . >/tmp/install.log 2>&1 || { echo "Install failed:"; tail -n +1 /tmp/install.log; exit 1; } echo "Building package..." python3 -m build >/tmp/build.log 2>&1 || { echo "Build failed:"; tail -n +1 /tmp/build.log; exit 1; } echo "Tests complete." exit 0