Skip to content

Commit 5f0b59a

Browse files
fix: select compatible wheels in release smoke tests
The original v1.0.0 release workflow failed because smoke tests installed the first wheel artifact, which could target the wrong Python ABI, and because the macOS x86_64 smoke test ran on an arm64 runner. Select wheels by interpreter tag and run the x86_64 smoke test on macos-13 before recreating the release.
1 parent 75e3b75 commit 5f0b59a

1 file changed

Lines changed: 5 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
target: aarch64
2121
- os: macos-14
2222
target: aarch64
23-
- os: macos-latest
23+
- os: macos-13
2424
target: x86_64
2525
- os: windows-latest
2626
target: x64
@@ -65,7 +65,7 @@ jobs:
6565
target: x86_64
6666
- os: macos-14
6767
target: aarch64
68-
- os: macos-latest
68+
- os: macos-13
6969
target: x86_64
7070
- os: windows-latest
7171
target: x64
@@ -84,8 +84,9 @@ jobs:
8484
import subprocess
8585
import sys
8686
87-
wheels = glob.glob("dist/*.whl")
88-
assert wheels, "No wheel artifact downloaded"
87+
interpreter_tag = f"cp{sys.version_info.major}{sys.version_info.minor}"
88+
wheels = glob.glob(f"dist/*{interpreter_tag}*.whl")
89+
assert wheels, f"No wheel matching interpreter tag {interpreter_tag}"
8990
subprocess.check_call([sys.executable, "-m", "pip", "install", wheels[0]])
9091
- name: Smoke test wheel
9192
shell: python

0 commit comments

Comments
 (0)