mirror of
				https://github.com/astral-sh/setup-uv.git
				synced 2025-10-28 21:46:47 +00:00 
			
		
		
		
	
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			
						parent
						
							12c852e6ba
						
					
				
				
					commit
					d174a24c07
				
			| @@ -334,10 +334,11 @@ by name (`uv`). | ||||
|  | ||||
| ### Do I still need `actions/setup-python` alongside `setup-uv`? | ||||
|  | ||||
| No. This action is modelled as a drop-in replacement for `actions/setup-python` when using uv. With | ||||
| `setup-uv`, you can install a specific version of Python using `uv python install` rather than | ||||
| With `setup-uv`, you can install a specific version of Python using `uv python install` rather than | ||||
| relying on `actions/setup-python`. | ||||
|  | ||||
| Using `actions/setup-python` can be faster, because GitHub caches the Python versions alongside the runner. | ||||
|  | ||||
| For example: | ||||
|  | ||||
| ```yaml | ||||
| @@ -348,7 +349,7 @@ For example: | ||||
|   with: | ||||
|     enable-cache: true | ||||
| - name: Test | ||||
|   run: uv run --frozen pytest | ||||
|   run: uv run --frozen pytest  # Uses the Python version automatically installed by uv | ||||
| ``` | ||||
|  | ||||
| To install a specific version of Python, use | ||||
|   | ||||
		Reference in New Issue
	
	Block a user