From 4f8ba24f06b18e9f59e0fbf218287c1aafa3bf19 Mon Sep 17 00:00:00 2001 From: jv Date: Fri, 18 Sep 2026 09:57:24 -0500 Subject: [PATCH] fix: install python3-pip and python3-yaml via apt --- .gitea/workflows/homelab-main.yml | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/.gitea/workflows/homelab-main.yml b/.gitea/workflows/homelab-main.yml index 90199c1..a285bd5 100644 --- a/.gitea/workflows/homelab-main.yml +++ b/.gitea/workflows/homelab-main.yml @@ -14,14 +14,13 @@ jobs: - name: Install Node.js and Python deps run: | set -e - # Use python3 -m pip to ensure we use the python3 installed in the image - python3 -m pip install --user PyYAML - - # Update PATH to include user pip installs - export PATH="${PATH}:${HOME}/.local/bin" + apt-get update + # Install python3-pip to get pip, and python3-yaml from apt since we are already updating + # If debian-security is broken, we use --fix-missing or try to ignore failures for non-essential + apt-get install -y --no-install-recommends python3-pip python3-yaml curl -fsSL https://deb.nodesource.com/setup_18.x | bash - - apt-get update && apt-get install -y --no-install-recommends nodejs + apt-get install -y --no-install-recommends nodejs - name: Check out repository run: | set -e @@ -29,8 +28,6 @@ jobs: - name: Validate repository run: | set -e - # Ensure user pip path is available for the script - export PATH="${PATH}:${HOME}/.local/bin" ./jeannie validate deploy: @@ -43,10 +40,10 @@ jobs: - name: Install Node.js and Python deps run: | set -e - python3 -m pip install --user PyYAML - export PATH="${PATH}:${HOME}/.local/bin" + apt-get update + apt-get install -y --no-install-recommends python3-pip python3-yaml curl -fsSL https://deb.nodesource.com/setup_18.x | bash - - apt-get update && apt-get install -y --no-install-recommends nodejs + apt-get install -y --no-install-recommends nodejs - name: Check out repository run: | set -e @@ -54,7 +51,6 @@ jobs: - name: Block automatic deploy for external Gitea changes run: | set -e - export PATH="${PATH}:${HOME}/.local/bin" event_before="$( python3 -c 'import json, os; p = os.environ.get("GITHUB_EVENT_PATH", ""); print(json.load(open(p, encoding="utf-8")).get("before", "") if p and os.path.exists(p) else "")'