Files
opendbc-meb/test.sh
royjr 2bc227e22e check if uv is installed (#1565)
* check if uv is installed

* Update test.sh

---------

Co-authored-by: Adeeb Shihadeh <adeebshihadeh@gmail.com>
2024-12-11 14:26:23 -08:00

25 lines
523 B
Bash
Executable File

#!/bin/bash
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
uv run scons -j8
uv run pre-commit run --all-files
uv run pytest -n8
GREEN='\033[0;32m'
NC='\033[0m'
printf "\n${GREEN}All good!${NC} Finished build, lint, and test in ${SECONDS}s\n"