From 2bc227e22e1332a33a425426e93b3ff493c8ba02 Mon Sep 17 00:00:00 2001 From: royjr Date: Wed, 11 Dec 2024 17:26:23 -0500 Subject: [PATCH] check if uv is installed (#1565) * check if uv is installed * Update test.sh --------- Co-authored-by: Adeeb Shihadeh --- test.sh | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test.sh b/test.sh index 6b6265b16..b752db6c9 100755 --- a/test.sh +++ b/test.sh @@ -4,6 +4,12 @@ set -e DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)" cd $DIR +# check if uv is installed +if ! command -v uv &>/dev/null; then + echo "'uv' is not installed. Installing 'uv'..." + curl -LsSf https://astral.sh/uv/install.sh | sh +fi + # ensure we're up to date uv sync --all-extras source .venv/bin/activate