From 872c0e99443ef9790851174bc2434dff90f77945 Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Sun, 10 May 2026 22:36:42 +0300 Subject: ci: use setup-uv to install Python 3.12 on Debian 12 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit actions/setup-python's prebuilt manifest at actions/python-versions ships 3.12 for Ubuntu but not for Debian 12. The vyos web- runner pool runs Debian 12, so the previous setup-python@v6 step failed with: "##[error]The version '3.12' with architecture 'x64' was not found for Debian 12." Replacing the step with astral-sh/setup-uv@v8.1.0 (SHA-pinned). uv provisions Python from Astral's cross-platform standalone builds, which work on Debian. Setting `python-version: '3.12'` triggers `uv python install`; `activate-environment: true` creates a venv at $GITHUB_WORKSPACE/.venv and prepends its bin/ to PATH so the `vyos-doc-review` CLI installed by uv pip install is callable without further configuration. Replaces `pip install` with `uv pip install` to use the venv that setup-uv activated. Same change being applied to .github/workflows/rebuild-reference.yml and .github/workflows/full-scan.yml in vyos-docs-opus-reviewer PR #13 (canonical scripts/ai-validation.yml will re-sync from this file). 🤖 Generated by [robots](https://vyos.io) --- .github/workflows/ai-validation.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to '.github/workflows') diff --git a/.github/workflows/ai-validation.yml b/.github/workflows/ai-validation.yml index 8e254dcc..e99f42ce 100644 --- a/.github/workflows/ai-validation.yml +++ b/.github/workflows/ai-validation.yml @@ -208,16 +208,23 @@ jobs: exit 1 fi - - name: Setup Python + # actions/setup-python prebuilt manifest does not ship Python 3.12 for + # Debian 12 (only Ubuntu). astral-sh/setup-uv installs uv (cross-platform) + # which then provisions Python 3.12 from Astral's standalone builds — + # works on Debian. activate-environment:true creates a .venv at + # ${{ github.workspace }}/.venv and prepends its bin/ to PATH so the + # `vyos-doc-review` CLI script is callable in subsequent steps. + - name: Setup uv + Python 3.12 if: steps.secrets-check.outputs.skip != 'true' - uses: actions/setup-python@v6 + uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 with: python-version: '3.12' + activate-environment: true - name: Install reviewer (pinned to REVIEWER_REF) if: steps.secrets-check.outputs.skip != 'true' run: | - pip install "git+https://x-access-token:${{ steps.app.outputs.token }}@github.com/VyOS-Networks/vyos-docs-opus-reviewer.git@${{ env.REVIEWER_REF }}" + uv pip install "git+https://x-access-token:${{ steps.app.outputs.token }}@github.com/VyOS-Networks/vyos-docs-opus-reviewer.git@${{ env.REVIEWER_REF }}" # Run from inside _changed_md/ so the diff's relative paths # (`docs/...`) resolve to actual files in the artifact tree. -- cgit v1.2.3