mirror of
				https://github.com/actions/cache.git
				synced 2025-10-31 18:34:19 +08:00 
			
		
		
		
	Merge pull request #443 from guilleijo/pipenv-example
Add example for python pipenv
This commit is contained in:
		
						commit
						9f3a4d3e65
					
				| @ -100,6 +100,7 @@ See [Examples](examples.md) for a list of `actions/cache` implementations for us | |||||||
| - [OCaml/Reason - esy](./examples.md#ocamlreason---esy) | - [OCaml/Reason - esy](./examples.md#ocamlreason---esy) | ||||||
| - [PHP - Composer](./examples.md#php---composer) | - [PHP - Composer](./examples.md#php---composer) | ||||||
| - [Python - pip](./examples.md#python---pip) | - [Python - pip](./examples.md#python---pip) | ||||||
|  | - [Python - pipenv](./examples.md#python---pipenv) | ||||||
| - [R - renv](./examples.md#r---renv) | - [R - renv](./examples.md#r---renv) | ||||||
| - [Ruby - Bundler](./examples.md#ruby---bundler) | - [Ruby - Bundler](./examples.md#ruby---bundler) | ||||||
| - [Rust - Cargo](./examples.md#rust---cargo) | - [Rust - Cargo](./examples.md#rust---cargo) | ||||||
|  | |||||||
							
								
								
									
										12
									
								
								examples.md
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								examples.md
									
									
									
									
									
								
							| @ -22,6 +22,7 @@ | |||||||
|     - [Multiple OSes in a workflow](#multiple-oss-in-a-workflow) |     - [Multiple OSes in a workflow](#multiple-oss-in-a-workflow) | ||||||
|     - [Using pip to get cache location](#using-pip-to-get-cache-location) |     - [Using pip to get cache location](#using-pip-to-get-cache-location) | ||||||
|     - [Using a script to get cache location](#using-a-script-to-get-cache-location) |     - [Using a script to get cache location](#using-a-script-to-get-cache-location) | ||||||
|  |   - [Python - pipenv](#python---pipenv) | ||||||
|   - [R - renv](#r---renv) |   - [R - renv](#r---renv) | ||||||
|     - [Simple example](#simple-example-1) |     - [Simple example](#simple-example-1) | ||||||
|     - [Multiple OSes in a workflow](#multiple-oss-in-a-workflow-1) |     - [Multiple OSes in a workflow](#multiple-oss-in-a-workflow-1) | ||||||
| @ -379,6 +380,17 @@ Replace `~/.cache/pip` with the correct `path` if not using Ubuntu. | |||||||
|       ${{ runner.os }}-pip- |       ${{ runner.os }}-pip- | ||||||
| ``` | ``` | ||||||
| 
 | 
 | ||||||
|  | ## Python - pipenv | ||||||
|  | 
 | ||||||
|  | ```yaml | ||||||
|  | - uses: actions/cache@v2 | ||||||
|  |   with: | ||||||
|  |     path: ~/.local/share/virtualenvs | ||||||
|  |     key: ${{ runner.os }}-pipenv-${{ hashFiles('Pipfile.lock') }} | ||||||
|  |     restore-keys: | | ||||||
|  |       ${{ runner.os }}-pipenv- | ||||||
|  | ``` | ||||||
|  | 
 | ||||||
| ## R - renv | ## R - renv | ||||||
| 
 | 
 | ||||||
| For renv, the cache directory will vary by OS. Look at https://rstudio.github.io/renv/articles/renv.html#cache | For renv, the cache directory will vary by OS. Look at https://rstudio.github.io/renv/articles/renv.html#cache | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Konrad Pabjan
						Konrad Pabjan