From f477a6a252a2f3675099b8068f0b45f1a1e87e68 Mon Sep 17 00:00:00 2001 From: Mumuni Date: Fri, 25 Sep 2026 19:20:23 +0000 Subject: [PATCH] fix(ci): install python3+PyYAML in the job when the runner image lacks them MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Runner probe on PR #35 (run 461, log job 1979): checkout@v4 succeeds (network fine) but the act container has node:20 + git 2.52 and NO python3 — 'python3 --version' exited 127, which was the failing check. Every validation step is python3-based, so make step 2 self-provisioning via apt when missing. Co-Authored-By: Claude Opus 5 --- .gitea/workflows/ci.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 41a33ee..e7ed8f3 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -15,9 +15,19 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - run: python3 --version + - name: Ensure python3 available (runner image may lack it) + run: | + if command -v python3 >/dev/null 2>&1; then + python3 --version + else + . /etc/os-release + echo "python3 missing — installing on $ID $VERSION_CODENAME" + apt-get update -qq + apt-get install -y -qq python3 python3-yaml + python3 --version + python3 -c "import yaml" && echo "PyYAML OK" + fi - run: node --version - - run: echo "Runner works!" - name: Python syntax check run: |