mirror of
				https://git.mirrors.martin98.com/https://github.com/actions/setup-python
				synced 2025-10-31 18:21:06 +08:00 
			
		
		
		
	Update README.md
Add a section to advise using only pip instead of poetry.
This commit is contained in:
		
							parent
							
								
									2f06e9da25
								
							
						
					
					
						commit
						e147df2e90
					
				
							
								
								
									
										13
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								README.md
									
									
									
									
									
								
							| @ -330,6 +330,19 @@ steps: | ||||
| - run: poetry run pytest | ||||
| ``` | ||||
| 
 | ||||
| **If you only need poetry install, consider using pip:** | ||||
| ```yaml | ||||
| steps: | ||||
| - uses: actions/checkout@v3 | ||||
| - uses: actions/setup-python@v4 | ||||
|   with: | ||||
|     python-version: '3.9' | ||||
|     cache: 'pip' | ||||
|     cache-dependency-path: 'poetry.lock' | ||||
| - run: pip install . | ||||
| - run: pytest | ||||
| ``` | ||||
| 
 | ||||
| **Using wildcard patterns to cache dependencies** | ||||
| ```yaml | ||||
| steps: | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Ben S
						Ben S