From ea7b3d0203fc7416eb85c7fb09d135924c0e0e82 Mon Sep 17 00:00:00 2001 From: Xuanwo Date: Tue, 24 Nov 2026 13:31:36 +0800 Subject: [PATCH] ci: set up Python 3.11 for NodeJS workspace lint (#5181) The NodeJS lint job runs `cargo clippy --profile ci --all --all-features` on Ubuntu 22.04, whose default `python3` is 3.10. The workspace includes the PyO3 bindings, which now require Python 3.11 or newer, so the build fails in `pyo3-ffi` before Clippy starts: ``` error: cannot set a minimum Python version 3.11 higher than the interpreter version 3.10 ``` Select Python 3.11, the SDK's minimum supported interpreter, before Rust compilation. Workspace, feature, and Node matrix coverage stay unchanged. The Rust workflow already lints on Ubuntu 24.04 with Python 3.12, so it needs no matching change. Validation: the workflow parses, and the Python setup step is ordered before `Lint Rust`; the Node 22/24/26 matrix is unchanged. The hosted NodeJS Lint run is linked from this PR's checks. --- .github/workflows/nodejs.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 9a21786d2..94e93392a 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -42,6 +42,12 @@ jobs: with: fetch-depth: 0 lfs: true + - name: Set up Python + uses: actions/setup-python@v6 + with: + # The workspace-wide Clippy run below builds the PyO3 bindings, whose + # minimum supported interpreter is 3.11. Ubuntu 22.04 defaults to 3.10. + python-version: "3.11" - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 with: version: 11.1.1