windows-latest #33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Setting up both python 3.13 and 3.13t on windows arm | |
| on: | |
| push: | |
| branches: | |
| - test-973 | |
| workflow_dispatch: | |
| jobs: | |
| test-multiple-python: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| # os: [ubuntu-latest, macos-latest, macos-15-intel, windows-latest, windows-11-arm] | |
| os: [windows-latest] | |
| fail-fast: false | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Clear cache | |
| run: | | |
| mv "${{ runner.tool_cache }}" "${{ runner.tool_cache }}.old" | |
| mkdir -p "${{ runner.tool_cache }}" | |
| - name: Setup Python 3.13 and 3.13t | |
| # uses: actions/setup-python@v6 | |
| uses: priya-kinthali/setup-python@test-1079 | |
| with: | |
| python-version: | | |
| 3.13 | |
| 3.13t | |
| - name: Verify Python installation | |
| shell: bash | |
| run: | | |
| echo "Default Python version:" | |
| python --version | |
| echo "" | |
| echo "Python executable location:" | |
| which python | |
| echo "" | |
| echo "Python sys info:" | |
| python -c "import sys; print(f'Executable: {sys.executable}'); print(f'Version: {sys.version}')" | |
| echo "" | |
| echo "=== Checking all installed Python versions ===" | |
| for py in python3.13 python3.13t; do | |
| echo "" | |
| echo "Testing $py:" | |
| if command -v $py &> /dev/null; then | |
| $py --version | |
| $py -c "import sys; print(f' Executable: {sys.executable}')" | |
| $py -c "import sys; print(f' Free-threading: {sys._is_gil_enabled() if hasattr(sys, \"_is_gil_enabled\") else \"N/A\"}')" | |
| else | |
| echo " $py not found!" | |
| fi | |
| done |