From 6523e5645b7c9ca1009db405e10da253a61e4bee Mon Sep 17 00:00:00 2001 From: pengfeiye Date: Wed, 4 Nov 2026 11:36:32 -0500 Subject: [PATCH] fix(ci): pin Python 3.8 jobs to ubuntu-24.04 ubuntu-latest now resolves to ubuntu-26.04, and actions/python-versions has no Python 3.8 build for 26.04 (its builds start at 3.10). setup-python fails with "Version 3.8 with arch x64 not found", so the Python 3.8, Pylint and Black, and docs jobs fail on every PR, and fail-fast cancels Python 3.x. Pin these jobs to ubuntu-24.04, the image they last passed on, where setup-python downloads python-3.8.18-linux-24.04-x64. Co-authored-by: Cursor --- .github/workflows/sdk-reference.yml | 3 ++- .github/workflows/test.yml | 6 ++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/sdk-reference.yml b/.github/workflows/sdk-reference.yml index 0778499e..6c8a4774 100644 --- a/.github/workflows/sdk-reference.yml +++ b/.github/workflows/sdk-reference.yml @@ -8,7 +8,8 @@ on: jobs: docs: - runs-on: ubuntu-latest + # Python 3.8 has no actions/python-versions build for ubuntu-26.04, which ubuntu-latest now resolves to. + runs-on: ubuntu-24.04 environment: name: sdk-reference url: ${{ steps.deploy.outputs.deployment-url }} diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index f7763d52..9224cd12 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,7 +11,8 @@ on: jobs: pytest: - runs-on: ubuntu-latest + # Python 3.8 has no actions/python-versions build for ubuntu-26.04, which ubuntu-latest now resolves to. + runs-on: ubuntu-24.04 strategy: matrix: python-version: ["3.8", "3.x"] @@ -34,7 +35,8 @@ jobs: uses: codecov/codecov-action@v3 black: - runs-on: ubuntu-latest + # Python 3.8 has no actions/python-versions build for ubuntu-26.04, which ubuntu-latest now resolves to. + runs-on: ubuntu-24.04 name: Pylint and Black steps: - uses: actions/checkout@v2