check if uv is installed (#1565)

* check if uv is installed

* Update test.sh

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
This commit is contained in:
royjr
2024-12-11 17:26:23 -05:00
committed by GitHub
parent b89fe79950
commit 2bc227e22e

View File

@@ -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