mirror of
				https://kkgithub.com/actions/setup-python.git
				synced 2025-10-31 18:51:51 +08:00 
			
		
		
		
	Merge pull request #471 from scooby/main
Recommend using pip for simple poetry projects
This commit is contained in:
		
							
								
								
									
										13
									
								
								README.md
									
									
									
									
									
								
							
							
						
						
									
										13
									
								
								README.md
									
									
									
									
									
								
							| @ -330,6 +330,19 @@ steps: | |||||||
| - run: poetry run pytest | - 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** | **Using wildcard patterns to cache dependencies** | ||||||
| ```yaml | ```yaml | ||||||
| steps: | steps: | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Marko Zivic
					Marko Zivic