You've already forked setup-python
							
							
				mirror of
				https://github.com/actions/setup-python.git
				synced 2025-10-31 23:26:24 +07:00 
			
		
		
		
	Add e2e Testing for free threaded and Bump @action/cache from 4.0.0 to 4.0.3 (#1056)
* include freethread e2e testing and upgrade cache from 4.0.0 to 4.0.2 * include verify gil step and validated python version * Rename files * include ubuntu-arm runners for testing
This commit is contained in:
		
							
								
								
									
										98
									
								
								.github/workflows/test-python.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										98
									
								
								.github/workflows/test-python.yml
									
									
									
									
										vendored
									
									
								
							| @ -26,10 +26,12 @@ jobs: | ||||
|             windows-latest, | ||||
|             ubuntu-20.04, | ||||
|             ubuntu-22.04, | ||||
|             ubuntu-22.04-arm, | ||||
|             macos-13, | ||||
|             ubuntu-latest | ||||
|             ubuntu-latest, | ||||
|             ubuntu-24.04-arm | ||||
|           ] | ||||
|         python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] | ||||
|         python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.2] | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
| @ -69,10 +71,12 @@ jobs: | ||||
|             windows-latest, | ||||
|             ubuntu-20.04, | ||||
|             ubuntu-22.04, | ||||
|             ubuntu-22.04-arm, | ||||
|             macos-13, | ||||
|             ubuntu-latest | ||||
|             ubuntu-latest, | ||||
|             ubuntu-24.04-arm | ||||
|           ] | ||||
|         python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] | ||||
|         python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.2] | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
| @ -115,10 +119,12 @@ jobs: | ||||
|             windows-latest, | ||||
|             ubuntu-20.04, | ||||
|             ubuntu-22.04, | ||||
|             ubuntu-22.04-arm, | ||||
|             macos-13, | ||||
|             ubuntu-latest | ||||
|             ubuntu-latest, | ||||
|             ubuntu-24.04-arm | ||||
|           ] | ||||
|         python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] | ||||
|         python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.2] | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
| @ -159,10 +165,12 @@ jobs: | ||||
|             windows-latest, | ||||
|             ubuntu-20.04, | ||||
|             ubuntu-22.04, | ||||
|             ubuntu-22.04-arm, | ||||
|             macos-13, | ||||
|             ubuntu-latest | ||||
|             ubuntu-latest, | ||||
|             ubuntu-24.04-arm | ||||
|           ] | ||||
|         python: [3.9.13, 3.10.11, 3.11.9, '==3.12.3', 3.13.0] | ||||
|         python: [3.9.13, 3.10.11, 3.11.9, '==3.12.3', 3.13.2] | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
| @ -208,10 +216,12 @@ jobs: | ||||
|             windows-latest, | ||||
|             ubuntu-20.04, | ||||
|             ubuntu-22.04, | ||||
|             ubuntu-22.04-arm, | ||||
|             macos-13, | ||||
|             ubuntu-latest | ||||
|             ubuntu-latest, | ||||
|             ubuntu-24.04-arm | ||||
|           ] | ||||
|         python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.0] | ||||
|         python: [3.9.13, 3.10.11, 3.11.9, 3.12.3, 3.13.2] | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
| @ -257,10 +267,12 @@ jobs: | ||||
|             windows-latest, | ||||
|             ubuntu-20.04, | ||||
|             ubuntu-22.04, | ||||
|             ubuntu-22.04-arm, | ||||
|             macos-13, | ||||
|             ubuntu-latest | ||||
|             ubuntu-latest, | ||||
|             ubuntu-24.04-arm | ||||
|           ] | ||||
|         python: [3.13.0, 3.14-dev, pypy3.11-7.3.18, graalpy-24.1.2] | ||||
|         python: [pypy3.11-7.3.18, graalpy-24.1.2, 3.13.2, 3.14-dev] | ||||
|         exclude: | ||||
|           - os: windows-latest | ||||
|             python: graalpy-24.1.2 | ||||
| @ -279,7 +291,7 @@ jobs: | ||||
|           python-version-file: .tool-versions | ||||
|  | ||||
|   setup-pre-release-version-from-manifest: | ||||
|     name: Setup 3.14.0-alpha.1 ${{ matrix.os }} | ||||
|     name: Setup 3.14.0-alpha.6 ${{ matrix.os }} | ||||
|     runs-on: ${{ matrix.os }} | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
| @ -290,18 +302,20 @@ jobs: | ||||
|             windows-latest, | ||||
|             ubuntu-20.04, | ||||
|             ubuntu-22.04, | ||||
|             ubuntu-22.04-arm, | ||||
|             macos-13, | ||||
|             ubuntu-latest | ||||
|             ubuntu-latest, | ||||
|             ubuntu-24.04-arm | ||||
|           ] | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
|  | ||||
|       - name: setup-python 3.14.0-alpha.1 | ||||
|       - name: setup-python 3.14.0-alpha.6 | ||||
|         id: setup-python | ||||
|         uses: ./ | ||||
|         with: | ||||
|           python-version: '3.14.0-alpha.1' | ||||
|           python-version: '3.14.0-alpha.6' | ||||
|  | ||||
|       - name: Check python-path | ||||
|         run: ./__tests__/check-python-path.sh '${{ steps.setup-python.outputs.python-path }}' | ||||
| @ -310,8 +324,8 @@ jobs: | ||||
|       - name: Validate version | ||||
|         run: | | ||||
|           $pythonVersion = (python --version) | ||||
|           if ("Python 3.14.0a1" -ne "$pythonVersion"){ | ||||
|             Write-Host "The current version is $pythonVersion; expected version is 3.14.0a1" | ||||
|           if ("Python 3.14.0a6" -ne "$pythonVersion"){ | ||||
|             Write-Host "The current version is $pythonVersion; expected version is 3.14.0a6" | ||||
|             exit 1 | ||||
|           } | ||||
|           $pythonVersion | ||||
| @ -326,7 +340,16 @@ jobs: | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         os: [macos-latest, windows-latest, ubuntu-latest, macos-13] | ||||
|         os: | ||||
|           [ | ||||
|             macos-latest, | ||||
|             windows-latest, | ||||
|             ubuntu-22.04, | ||||
|             ubuntu-22.04-arm, | ||||
|             ubuntu-24.04-arm, | ||||
|             ubuntu-latest, | ||||
|             macos-13 | ||||
|           ] | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
| @ -354,7 +377,16 @@ jobs: | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         os: [macos-latest, windows-latest, ubuntu-latest, macos-13] | ||||
|         os: | ||||
|           [ | ||||
|             macos-latest, | ||||
|             windows-latest, | ||||
|             ubuntu-22.04, | ||||
|             ubuntu-22.04-arm, | ||||
|             ubuntu-24.04-arm, | ||||
|             ubuntu-latest, | ||||
|             macos-13 | ||||
|           ] | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
| @ -389,8 +421,10 @@ jobs: | ||||
|             windows-latest, | ||||
|             ubuntu-20.04, | ||||
|             ubuntu-22.04, | ||||
|             ubuntu-22.04-arm, | ||||
|             macos-13, | ||||
|             ubuntu-latest | ||||
|             ubuntu-latest, | ||||
|             ubuntu-24.04-arm | ||||
|           ] | ||||
|         python: ['3.9', '3.10', '3.11', '3.12', '3.13'] | ||||
|     steps: | ||||
| @ -415,7 +449,16 @@ jobs: | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         os: [ubuntu-latest, windows-latest, macos-latest, macos-13] | ||||
|         os: | ||||
|           [ | ||||
|             macos-latest, | ||||
|             windows-latest, | ||||
|             ubuntu-22.04, | ||||
|             ubuntu-22.04-arm, | ||||
|             ubuntu-24.04-arm, | ||||
|             ubuntu-latest, | ||||
|             macos-13 | ||||
|           ] | ||||
|         python-version: ['3.9', '3.10', '3.11', '3.12', '3.13'] | ||||
|     steps: | ||||
|       - uses: actions/checkout@v4 | ||||
| @ -439,7 +482,16 @@ jobs: | ||||
|     strategy: | ||||
|       fail-fast: false | ||||
|       matrix: | ||||
|         os: [ubuntu-latest, windows-latest, macos-latest, macos-13] | ||||
|         os: | ||||
|           [ | ||||
|             macos-latest, | ||||
|             windows-latest, | ||||
|             ubuntu-22.04, | ||||
|             ubuntu-22.04-arm, | ||||
|             ubuntu-24.04-arm, | ||||
|             ubuntu-latest, | ||||
|             macos-13 | ||||
|           ] | ||||
|     steps: | ||||
|       - uses: actions/checkout@v4 | ||||
|       - name: Setup Python and check latest | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 priya-kinthali
					priya-kinthali