From 69dd432a8d793e3af2f07f520c98827856ab51a6 Mon Sep 17 00:00:00 2001 From: Chris Andreae Date: Wed, 24 Jul 2024 16:16:44 +0900 Subject: [PATCH] Patch metadata-validation Github action: use setup-python The upstream hardware-metadata-validation action presently fails to install Python dependencies with a permissions error for the pip cache directory. Until it's fixed upstream, patch the action to use Github's `setup-python` to obtain a functioning Python enviroment. --- .github/workflows/hardware-metadata-validation.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/hardware-metadata-validation.yml b/.github/workflows/hardware-metadata-validation.yml index 716cd976277..4601fef93fd 100644 --- a/.github/workflows/hardware-metadata-validation.yml +++ b/.github/workflows/hardware-metadata-validation.yml @@ -21,6 +21,10 @@ jobs: image: docker.io/zmkfirmware/zmk-dev-arm:3.5 steps: - uses: actions/checkout@v4 + - name: Install python environment (temporary patch) + uses: actions/setup-python@v5 + with: + python-version: "3.12" - name: Install dependencies run: pip install -r app/scripts/requirements.txt - name: West init