From dc4abf3774b40b942f6362b601cf70039a20651e Mon Sep 17 00:00:00 2001 From: root Date: Mon, 20 Apr 2026 11:00:56 -0300 Subject: [PATCH] Install Python via apt instead of setup-python in KB health workflow MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit actions/setup-python@v5 fails on the arm64 Gitea runner with "version '3.12' with architecture 'arm64' was not found" — the prebuilt Python manifest doesn't cover this runner/arch combo. Use the system python3 from apt; the link-check scripts don't require 3.12 specifically. Co-Authored-By: Claude Opus 4.7 (1M context) --- .gitea/workflows/kb-health.yaml | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/kb-health.yaml b/.gitea/workflows/kb-health.yaml index 8710089..8f7674f 100644 --- a/.gitea/workflows/kb-health.yaml +++ b/.gitea/workflows/kb-health.yaml @@ -18,25 +18,26 @@ jobs: uses: actions/checkout@v4 - name: Setup Python - uses: actions/setup-python@v5 - with: - python-version: '3.12' + run: | + sudo apt-get update -qq + sudo apt-get install -y python3 python3-pip + python3 --version - name: Install dependencies - run: pip install requests beautifulsoup4 pyyaml + run: python3 -m pip install --user requests beautifulsoup4 pyyaml - name: Check Architecture Center links id: check continue-on-error: true run: | - python tools/refresh_arch_catalog.py --check-links 2>&1 | tee /tmp/link-check.txt + python3 tools/refresh_arch_catalog.py --check-links 2>&1 | tee /tmp/link-check.txt echo "exit_code=$?" >> $GITHUB_OUTPUT - name: Check SKU catalog freshness id: sku continue-on-error: true run: | - python tools/refresh_sku_catalog.py --validate 2>&1 | tee -a /tmp/link-check.txt + python3 tools/refresh_sku_catalog.py --validate 2>&1 | tee -a /tmp/link-check.txt - name: Create issue if problems found if: steps.check.outcome == 'failure'