Install Python via apt instead of setup-python in KB health workflow
All checks were successful
Deploy Skill to OCI / deploy (push) Successful in 24s

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) <noreply@anthropic.com>
This commit is contained in:
root
2026-04-20 11:00:56 -03:00
parent 01baff1f5b
commit dc4abf3774

View File

@@ -18,25 +18,26 @@ jobs:
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Setup Python - name: Setup Python
uses: actions/setup-python@v5 run: |
with: sudo apt-get update -qq
python-version: '3.12' sudo apt-get install -y python3 python3-pip
python3 --version
- name: Install dependencies - name: Install dependencies
run: pip install requests beautifulsoup4 pyyaml run: python3 -m pip install --user requests beautifulsoup4 pyyaml
- name: Check Architecture Center links - name: Check Architecture Center links
id: check id: check
continue-on-error: true continue-on-error: true
run: | 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 echo "exit_code=$?" >> $GITHUB_OUTPUT
- name: Check SKU catalog freshness - name: Check SKU catalog freshness
id: sku id: sku
continue-on-error: true continue-on-error: true
run: | 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 - name: Create issue if problems found
if: steps.check.outcome == 'failure' if: steps.check.outcome == 'failure'