|
| 1 | +name: Test Python 3.13t on Windows 11 ARM |
| 2 | + |
1 | 3 | on: |
| 4 | + workflow_dispatch: |
2 | 5 | push: |
3 | | - branches: |
4 | | - - main |
5 | 6 |
|
6 | 7 | jobs: |
7 | | - build: |
| 8 | + test-python-313t: |
8 | 9 | runs-on: windows-11-arm |
| 10 | + |
9 | 11 | steps: |
10 | | - - name: Checkout code |
11 | | - uses: actions/checkout@v4 |
| 12 | + - uses: actions/checkout@v5 |
12 | 13 |
|
13 | | - - name: Download rustup-init.exe (ARM64) |
14 | | - shell: pwsh |
15 | | - run: | |
16 | | - Invoke-WebRequest -Uri "https://static.rust-lang.org/rustup/dist/aarch64-pc-windows-msvc/rustup-init.exe" -OutFile "rustup-init.exe" |
| 14 | + - name: Set up Python 3.13t |
| 15 | + uses: actions/setup-python@v6 |
| 16 | + with: |
| 17 | + python-version: '3.13t' |
| 18 | + architecture: 'arm64' |
17 | 19 |
|
18 | | - - name: Install Rust (ARM64) |
19 | | - shell: pwsh |
| 20 | + - name: Show Python version (python) |
20 | 21 | run: | |
21 | | - Start-Process -FilePath ".\rustup-init.exe" -ArgumentList "-y --default-host aarch64-pc-windows-msvc" -Wait |
| 22 | + python -V |
22 | 23 |
|
23 | | - - name: Add Rust to PATH |
24 | | - shell: pwsh |
| 24 | + - name: Show Python architecture (python) |
25 | 25 | run: | |
26 | | - $cargoBin = "$env:USERPROFILE\.cargo\bin" |
27 | | - echo "$cargoBin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append |
28 | | -
|
29 | | - - name: Update & Configure Rust Toolchain (ARM64) |
30 | | - shell: pwsh |
| 26 | + python - <<EOF |
| 27 | + import platform, sys |
| 28 | + print("Version:", sys.version) |
| 29 | + print("Machine:", platform.machine()) |
| 30 | + print("Executable:", sys.executable) |
| 31 | + EOF |
| 32 | +
|
| 33 | + - name: List Python versions via py launcher |
| 34 | + shell: cmd |
31 | 35 | run: | |
32 | | - rustup update |
33 | | - rustup toolchain install stable-aarch64-pc-windows-msvc |
34 | | - rustup default stable-aarch64-pc-windows-msvc |
35 | | - rustc -vV |
| 36 | + py -0p |
36 | 37 |
|
37 | | - - name: Clone Selenium Repository |
38 | | - shell: pwsh |
| 38 | + - name: Verify Python 3.13t via py launcher |
| 39 | + shell: cmd |
39 | 40 | run: | |
40 | | - git clone https://github.com/SeleniumHQ/selenium.git |
41 | | -
|
42 | | - - name: Build Selenium Rust crate |
43 | | - shell: pwsh |
44 | | - run: | |
45 | | - cd selenium\rust |
46 | | - cargo build --release |
47 | | -
|
| 41 | + py -3.13t -V |
| 42 | + py -3.13t -c "import platform, sys; print(platform.machine(), sys.executable)" |
0 commit comments