From 70222e93584019a504cd438bafbf264ab5afa143 Mon Sep 17 00:00:00 2001 From: Zanie Blue Date: Thu, 4 Sep 2025 13:36:55 -0500 Subject: [PATCH] Add test coverage of x86-64 Python from `setup-python` on arm64 macOS (#15687) --- .github/workflows/ci.yml | 31 +++++++++++++++++++++++++++++-- 1 file changed, 29 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 19ed57211..7a48e4f44 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2305,8 +2305,6 @@ jobs: - name: "Prepare binary" run: chmod +x ./uv - # This should be the macOS system Python - # We'd like to test with Homebrew but this Python takes precedence in system Python discovery - name: "Print Python path" run: echo $(which python3) @@ -2340,6 +2338,35 @@ jobs: - name: "Validate global Python install" run: python3 scripts/check_system_python.py --uv ./uv --externally-managed + system-test-macos-aarch64-emulated: + timeout-minutes: 10 + needs: build-binary-macos-aarch64 + name: "check system | x86-64 python on macos aarch64" + runs-on: macos-14 # github-macos-14-aarch64-3 + steps: + - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + with: + persist-credentials: false + + - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0 + with: + python-version: 3.13 + architecture: x64 + + - name: "Download binary" + uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0 + with: + name: uv-macos-aarch64-${{ github.sha }} + + - name: "Prepare binary" + run: chmod +x ./uv + + - name: "Print Python path" + run: echo $(which python3) + + - name: "Validate global Python install" + run: python3 scripts/check_system_python.py --uv ./uv --externally-managed + system-test-macos-x86_64: timeout-minutes: 10 needs: build-binary-macos-x86_64