diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0ccc9ea4ec6d1..4c93b3502a756 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -619,7 +619,6 @@ jobs: build-binary-windows-aarch64: needs: determine_changes timeout-minutes: 25 - if: ${{ !contains(github.event.pull_request.labels.*.name, 'no-test') && (needs.determine_changes.outputs.code == 'true' || github.ref == 'refs/heads/main') }} runs-on: labels: windows-latest name: "build binary | windows aarch64" @@ -2261,7 +2260,7 @@ jobs: name: uv-windows-aarch64-${{ github.sha }} - name: "Validate global Python install" - run: py -3.13 ./scripts/check_system_python.py --uv ./uv.exe + run: py -3.13-arm64 ./scripts/check_system_python.py --uv ./uv.exe # Test our PEP 514 integration that installs Python into the Windows registry. system-test-windows-registry: diff --git a/scripts/check_system_python.py b/scripts/check_system_python.py index 565518e502974..ad50b07c36563 100755 --- a/scripts/check_system_python.py +++ b/scripts/check_system_python.py @@ -24,7 +24,7 @@ def install_package(*, uv: str, package: str): check=True, ) - logging.info(f"Checking that `{package}` can be imported.") + logging.info(f"Checking that `{package}` can be imported with `{sys.executable}`.") code = subprocess.run( [sys.executable, "-c", f"import {package}"], cwd=temp_dir, @@ -82,11 +82,17 @@ def install_package(*, uv: str, package: str): ) # Ensure that the package (`pylint`) is installed. - logging.info("Checking that `pylint` is installed.") + logging.info( + f"Checking that `pylint` is installed with `{sys.executable} -m pip`." + ) code = subprocess.run( [sys.executable, "-m", "pip", "show", "pylint"], cwd=temp_dir, ) + subprocess.run( + ["uv", "pip", "show", "--system", "--verbose", "pylint"], + cwd=temp_dir, + ) if code.returncode != 0: raise Exception("The package `pylint` isn't installed (but should be).")