You've already forked setup-python
							
							
				mirror of
				https://github.com/actions/setup-python.git
				synced 2025-10-31 15:16:23 +07:00 
			
		
		
		
	Update from v1 to v2
This commit is contained in:
		
							
								
								
									
										10
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								README.md
									
									
									
									
									
								
							| @ -1,4 +1,4 @@ | ||||
| # setup-python | ||||
| # setup-python V2 | ||||
|  | ||||
| <p align="left"> | ||||
|   <a href="https://github.com/actions/setup-python"><img alt="GitHub Actions status" src="https://github.com/actions/setup-python/workflows/Main%20workflow/badge.svg"></a> | ||||
| @ -25,7 +25,7 @@ Basic: | ||||
| ```yaml | ||||
| steps: | ||||
| - uses: actions/checkout@v2 | ||||
| - uses: actions/setup-python@v1 | ||||
| - uses: actions/setup-python@v2 | ||||
|   with: | ||||
|     python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax | ||||
|     architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | ||||
| @ -44,7 +44,7 @@ jobs: | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Setup python | ||||
|         uses: actions/setup-python@v1 | ||||
|         uses: actions/setup-python@v2 | ||||
|         with: | ||||
|           python-version: ${{ matrix.python-version }} | ||||
|           architecture: x64 | ||||
| @ -68,7 +68,7 @@ jobs: | ||||
|     steps: | ||||
|       - uses: actions/checkout@v2 | ||||
|       - name: Set up Python | ||||
|         uses: actions/setup-python@v1 | ||||
|         uses: actions/setup-python@v2 | ||||
|         with: | ||||
|           python-version: ${{ matrix.python-version }} | ||||
|       - name: Display Python version | ||||
| @ -85,7 +85,7 @@ jobs: | ||||
|         python-version: [3.5, 3.6, 3.7.4, 3.8] | ||||
|     steps: | ||||
|     - uses: actions/checkout@v2 | ||||
|     - uses: actions/setup-python@v1 | ||||
|     - uses: actions/setup-python@v2 | ||||
|       with: | ||||
|         python-version: ${{ matrix.python }} | ||||
|     - run: python my_script.py | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Konrad Pabjan
					Konrad Pabjan