mirror of
				https://git.mirrors.martin98.com/https://github.com/actions/setup-python
				synced 2025-10-31 08:51:06 +08:00 
			
		
		
		
	Caching projects that use setup.py (#549)
This commit is contained in:
		
							parent
							
								
									b80efd6bc5
								
							
						
					
					
						commit
						1aafadcfb9
					
				| @ -281,6 +281,20 @@ steps: | |||||||
| - run: pip install -e . -r subdirectory/requirements-dev.txt | - run: pip install -e . -r subdirectory/requirements-dev.txt | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | **Caching projects that use setup.py:** | ||||||
|  | 
 | ||||||
|  | ```yaml | ||||||
|  | steps: | ||||||
|  | - uses: actions/checkout@v3 | ||||||
|  | - uses: actions/setup-python@v4 | ||||||
|  |   with: | ||||||
|  |     python-version: '3.11' | ||||||
|  |     cache: 'pip' | ||||||
|  |     cache-dependency-path: setup.py | ||||||
|  | - run: pip install -e . | ||||||
|  |   # Or pip install -e '.[test]' to install test dependencies | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
| # Outputs and environment variables | # Outputs and environment variables | ||||||
| 
 | 
 | ||||||
| ## Outputs | ## Outputs | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Simon Willison
						Simon Willison