summaryrefslogtreecommitdiff
path: root/.github
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@vyos.io>2026-05-10 22:36:42 +0300
committerYuriy Andamasov <yuriy@vyos.io>2026-05-10 22:36:42 +0300
commit872c0e99443ef9790851174bc2434dff90f77945 (patch)
tree4154282e204708bfbca9587b33dc9cd7818c0868 /.github
parente39d9b2c79f7f1c06004d551f3c22f5d866e401a (diff)
downloadvyos-documentation-872c0e99443ef9790851174bc2434dff90f77945.tar.gz
vyos-documentation-872c0e99443ef9790851174bc2434dff90f77945.zip
ci: use setup-uv to install Python 3.12 on Debian 12
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)
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/ai-validation.yml13
1 files changed, 10 insertions, 3 deletions
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.