Files
github-actions[bot] 221ae0b99c sunnypilot v2026.08.23-4728
version: sunnypilot v2026.003.000 (dev)
date: 2026-08-23T07:10:04
master commit: dc784dc35c
2026-08-23 07:10:04 +00:00

26 lines
526 B
Bash
Executable File

#!/usr/bin/env bash
set -e
DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
cd "$DIR"
# *** env setup ***
if ! command -v uv >/dev/null; then
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
fi
uv sync --extra dev
# *** build ***
uv run scons -j8
# *** lint + test ***
uv run ruff check .
uv run ty check .
uv run python -m unittest discover
# *** all done ***
GREEN='\033[0;32m'
NC='\033[0m'
printf "\n${GREEN}All good!${NC} Finished lint and test in ${SECONDS}s\n"