Skip to content

Commit

Permalink
check if uv is installed (#1565)
Browse files Browse the repository at this point in the history
* check if uv is installed

* Update test.sh

---------

Co-authored-by: Adeeb Shihadeh <[email protected]>
  • Loading branch information
royjr and adeebshihadeh authored Dec 11, 2024
1 parent b89fe79 commit 2bc227e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2bc227e

Please sign in to comment.