omniAI / scripts /check.sh
hasimjaneef's picture
Deploy OmnAI single-model research workspace
1642ffb verified
Raw History Blame Contribute Delete
879 Bytes
#!/usr/bin/env bash
set -euo pipefail
cd "$(dirname "$0")/.."
PYTHON_BIN="${PYTHON_BIN:-.venv/bin/python}"
"$PYTHON_BIN" -m pytest tests/test_api.py tests/test_session_edges.py \
tests/test_connected_perception.py tests/test_gpu_contract.py \
tests/test_portfolio.py tests/test_delivery_smoke.py
npm --prefix frontend test
npm --prefix frontend run build
"$PYTHON_BIN" scripts/package_release.py --validate-only
# Optional immutable source audit uses no weights, CUDA or inference tokens.
# OMNAI_SOURCE_DIR points to a previously downloaded official source snapshot.
if [[ -n "${OMNAI_SOURCE_DIR:-}" ]]; then
"$PYTHON_BIN" scripts/verify_model_sources.py --source-dir "$OMNAI_SOURCE_DIR"
fi
# Run only against an already running localhost application in mock mode.
if [[ "${OMNAI_HTTP_SMOKE:-0}" == "1" ]]; then
"$PYTHON_BIN" scripts/local_smoke.py --seconds 600.037
fi