From 63d6fc7ff4ebafa4b7688e4db0bf87ed05e6159e Mon Sep 17 00:00:00 2001 From: Kevin Wang Date: Tue, 10 Nov 2026 01:21:56 -0800 Subject: [PATCH] ci(sdk): pin Python 3.13 for SDK tests The job used the runner image's system Python. On ubuntu-26.04 that is 3.14, for which the locked pydantic-core 2.33.2 has no wheel, and its source build fails because PyO3 0.24 supports at most 3.13. Signed-off-by: Kevin Wang --- .github/workflows/sdk.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.github/workflows/sdk.yaml b/.github/workflows/sdk.yaml index 550806ff9..27c07d6be 100644 --- a/.github/workflows/sdk.yaml +++ b/.github/workflows/sdk.yaml @@ -84,6 +84,14 @@ jobs: # the entries that are actually shared. save-if: ${{ github.event_name == 'push' }} + # Pin the interpreter: the runner image's system Python can be newer than + # the PyO3 versions in the Python SDK's locked dependencies support. + - name: Install Python + if: steps.changes.outputs.relevant == 'true' + uses: actions/setup-python@v5 + with: + python-version: '3.13' + - name: SDK tests if: steps.changes.outputs.relevant == 'true' run: cd sdk && ./run-tests.sh