Files
opendbc-meb/test.sh
Shane Smiskol 37a97041a9 uv run is not needed (#1745)
* uv run is not needed

* Update test.sh
2025-02-18 20:49:47 -08:00

34 lines
679 B
Bash
Executable File

#!/bin/bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd $DIR
# TODO: why doesn't uv do this?
export PYTHONPATH=$DIR
# *** dependencies install ***
if ! command -v uv &>/dev/null; then
echo "'uv' is not installed. Installing 'uv'..."
curl -LsSf https://astral.sh/uv/install.sh | sh
fi
uv sync --all-extras
source .venv/bin/activate
# *** build ***
scons -j8
# *** lint ***
# TODO: pre-commit is slow; replace it with openpilot's "op lint"
#pre-commit run --all-files
ruff check .
# *** test ***
pytest -n8
# *** all done ***
GREEN='\033[0;32m'
NC='\033[0m'
printf "\n${GREEN}All good!${NC} Finished build, lint, and test in ${SECONDS}s\n"