fix: install python3-pip and python3-yaml via apt
Homelab Main / validate (push) Failing after 5s Details
Homelab Main / deploy (push) Has been skipped Details

This commit is contained in:
jv 2026-09-18 09:57:24 -05:00
parent 266836cabd
commit 4f8ba24f06
1 changed files with 8 additions and 12 deletions

View File

@ -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 "")'