Harden golden QA readiness gate
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
||||
cd "$ROOT"
|
||||
|
||||
if [ -z "${PYTHON_BIN:-}" ]; then
|
||||
PYTHON_BIN=""
|
||||
for candidate in python3 python.exe python; do
|
||||
if command -v "${candidate}" >/dev/null 2>&1 && "${candidate}" -c "import sys" >/dev/null 2>&1; then
|
||||
PYTHON_BIN="${candidate}"
|
||||
break
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
if [ -z "${PYTHON_BIN:-}" ]; then
|
||||
echo "No usable python interpreter found" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "== GeoIntel golden QA/QC benchmark =="
|
||||
"${PYTHON_BIN}" scripts/run_golden_qa_benchmark.py --json
|
||||
Reference in New Issue
Block a user