|
| 1 | +name: Diagnose Python 3.14 / 3.14t on Windows ARM |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + branches: |
| 6 | + - test-973 |
| 7 | + workflow_dispatch: |
| 8 | + |
| 9 | +jobs: |
| 10 | + diagnose: |
| 11 | + runs-on: windows-11-arm |
| 12 | + |
| 13 | + steps: |
| 14 | + - name: Runner + Image metadata |
| 15 | + shell: pwsh |
| 16 | + run: | |
| 17 | + echo "=== Runner metadata ===" |
| 18 | + echo "OS : $env:RUNNER_OS" |
| 19 | + echo "Arch : $env:RUNNER_ARCH" |
| 20 | + echo "ImageVersion : $env:ImageVersion" |
| 21 | + systeminfo | Select-String "OS Version" |
| 22 | + - name: Inspect preinstalled Python (before setup-python) |
| 23 | + shell: pwsh |
| 24 | + run: | |
| 25 | + echo "=== Python on PATH ===" |
| 26 | + where python || echo "python not on PATH" |
| 27 | + python --version || echo "python not runnable" |
| 28 | + echo "`n=== Hosted toolcache ===" |
| 29 | + Get-ChildItem "C:\hostedtoolcache\windows\Python" -ErrorAction SilentlyContinue |
| 30 | + echo "`n=== Program Files ===" |
| 31 | + Get-ChildItem "C:\Program Files\Python*" -ErrorAction SilentlyContinue |
| 32 | + - name: Setup Python 3.14 (GIL build) |
| 33 | + uses: actions/setup-python@v6 |
| 34 | + with: |
| 35 | + python-version: "3.14" |
| 36 | + architecture: arm64 |
| 37 | + |
| 38 | + - name: Verify Python 3.14 works |
| 39 | + shell: pwsh |
| 40 | + run: | |
| 41 | + echo "=== After setup-python 3.14 ===" |
| 42 | + python --version |
| 43 | + python -c "import sys; print('Executable:', sys.executable); print('Stdlib OK')" |
| 44 | + - name: Attempt setup-python 3.14t (expected to fail) |
| 45 | + continue-on-error: true |
| 46 | + uses: actions/setup-python@v6 |
| 47 | + with: |
| 48 | + python-version: "3.14t" |
| 49 | + architecture: arm64 |
| 50 | + |
| 51 | + - name: Inspect Python after 3.14t attempt |
| 52 | + shell: pwsh |
| 53 | + run: | |
| 54 | + echo "=== Python state after 3.14t attempt ===" |
| 55 | + where python || echo "python missing" |
| 56 | + python --version || echo "python not runnable" |
| 57 | + echo "`n=== Toolcache after 3.14t attempt ===" |
| 58 | + Get-ChildItem "C:\hostedtoolcache\windows\Python" -ErrorAction SilentlyContinue |
| 59 | + - name: Test NuGet free-threaded Python (control test) |
| 60 | + shell: pwsh |
| 61 | + run: | |
| 62 | + echo "=== Installing Python 3.14t via NuGet ===" |
| 63 | + nuget install pythonarm64-freethreaded -Version 3.14.2 -OutputDirectory nuget-python |
| 64 | + $py = Resolve-Path "nuget-python\pythonarm64-freethreaded.3.14.2\tools\python.exe" |
| 65 | + & $py --version |
| 66 | + & $py -c "import sys, encodings; print('NuGet executable:', sys.executable); print('encodings OK')" |
0 commit comments