mirror of
				https://gitea.com/actions/setup-python.git
				synced 2025-10-31 11:48:56 +08:00 
			
		
		
		
	Use python-version (#10)
This commit is contained in:
		| @@ -19,7 +19,7 @@ steps: | ||||
| - uses: actions/checkout@master | ||||
| - uses: actions/setup-python@v1 | ||||
|   with: | ||||
|     version: '3.x' // Version range or exact version of a Python version to use, using semvers version range syntax. | ||||
|     python-version: '3.x' // Version range or exact version of a Python version to use, using semvers version range syntax. | ||||
|     architecture: 'x64' // (x64 or x86) | ||||
| - run: python my_script.py | ||||
| ``` | ||||
| @@ -38,7 +38,7 @@ jobs: | ||||
|       - name: Setup python | ||||
|         uses: actions/setup-python@v1 | ||||
|         with: | ||||
|           version: ${{ matrix.python }} | ||||
|           python-version: ${{ matrix.python }} | ||||
|           architecture: x64 | ||||
|       - run: python my_script.py | ||||
| ``` | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Danny McCormick
					Danny McCormick