ci: cache evidence lane bootstrap and platformio core

This commit is contained in:
L'électron rare
2026-03-13 11:21:54 +01:00
parent 3e3cb061f1
commit 0434d79c3e
7 changed files with 38 additions and 7 deletions
+4 -3
View File
@@ -7,6 +7,7 @@ PYTHON_BIN="${PYTHON_BIN:-python3}"
REINSTALL=false
WITH_PLATFORMIO=false
REQ_FILE="${ROOT_DIR}/tools/compliance/requirements.txt"
PIO_REQ_FILE="${ROOT_DIR}/tools/compliance/requirements-platformio.txt"
usage() {
cat <<'EOF'
@@ -88,9 +89,9 @@ if ! "${VENV_DIR}/bin/python" -c "import yaml, jsonschema" >/dev/null 2>&1; then
"${VENV_DIR}/bin/python" -m pip install 'jsonschema>=4.21.0'
fi
if [[ "${WITH_PLATFORMIO}" == true ]] && [[ ! -x "${VENV_DIR}/bin/pio" ]]; then
echo "[bootstrap-python] installing PlatformIO"
"${VENV_DIR}/bin/python" -m pip install platformio
if [[ "${WITH_PLATFORMIO}" == true ]]; then
echo "[bootstrap-python] ensuring PlatformIO requirement"
"${VENV_DIR}/bin/python" -m pip install -r "${PIO_REQ_FILE}"
fi
echo "[bootstrap-python] python: ${VENV_DIR}/bin/python"