This repository was archived by the owner on Sep 1, 2026. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 binary_name : stagehand-server-v3-linux-x64
2121 output_path : src/stagehand/_sea/stagehand-linux-x64
2222 wheel_platform_tag : manylinux2014_x86_64
23+ - os : ubuntu-latest
24+ binary_name : stagehand-server-v3-linux-arm64
25+ output_path : src/stagehand/_sea/stagehand-linux-arm64
26+ wheel_platform_tag : manylinux2014_aarch64
2327 - os : macos-latest
2428 binary_name : stagehand-server-v3-darwin-arm64
2529 output_path : src/stagehand/_sea/stagehand-darwin-arm64
3236 binary_name : stagehand-server-v3-win32-x64.exe
3337 output_path : src/stagehand/_sea/stagehand-win32-x64.exe
3438 wheel_platform_tag : win_amd64
39+ - os : windows-latest
40+ binary_name : stagehand-server-v3-win32-arm64.exe
41+ output_path : src/stagehand/_sea/stagehand-win32-arm64.exe
42+ wheel_platform_tag : win_arm64
3543
3644 runs-on : ${{ matrix.os }}
3745 permissions :
Original file line number Diff line number Diff line change @@ -23,6 +23,27 @@ def _load_download_binary_module():
2323download_binary = _load_download_binary_module ()
2424
2525
26+ @pytest .mark .parametrize (
27+ ("sys_platform" , "machine" , "expected" ),
28+ [
29+ ("linux" , "aarch64" , "stagehand-linux-arm64" ),
30+ ("linux" , "x86_64" , "stagehand-linux-x64" ),
31+ ("win32" , "ARM64" , "stagehand-win32-arm64.exe" ),
32+ ("win32" , "AMD64" , "stagehand-win32-x64.exe" ),
33+ ],
34+ )
35+ def test_default_binary_filename_matches_published_wheel (
36+ monkeypatch : pytest .MonkeyPatch ,
37+ sys_platform : str ,
38+ machine : str ,
39+ expected : str ,
40+ ) -> None :
41+ monkeypatch .setattr (sea_binary .sys , "platform" , sys_platform )
42+ monkeypatch .setattr (sea_binary .platform , "machine" , lambda : machine )
43+
44+ assert sea_binary .default_binary_filename () == expected
45+
46+
2647def test_resolve_binary_path_defaults_cache_version_to_package_version (
2748 monkeypatch : pytest .MonkeyPatch ,
2849 tmp_path : Path ,
You can’t perform that action at this time.
0 commit comments