mirror of
https://github.com/actions/cache.git
synced 2024-12-27 14:28:01 +08:00
Merge ce207c8817be230ca9aa568013514b0cdcf0279b into 1bd1e32a3bdc45362d1e726936510720a7c30a57
This commit is contained in:
commit
d7e6fbb66c
@ -563,6 +563,15 @@ jobs:
|
|||||||
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
|
key: ${{ runner.os }}-python-${{ steps.setup-python.outputs.python-version }}-pipenv-${{ hashFiles('Pipfile.lock') }}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
To use the cache effectively:
|
||||||
|
```yaml
|
||||||
|
- name: Install packages
|
||||||
|
run: |
|
||||||
|
pipenv --venv && \
|
||||||
|
(pipenv lock -r |cat - ci-requirements.txt|pipenv run pip install -r /dev/stdin) || \
|
||||||
|
(pipenv install --python ${{ matrix.python-version }} --deploy)
|
||||||
|
```
|
||||||
|
|
||||||
## R - renv
|
## R - renv
|
||||||
|
|
||||||
For renv, the cache directory will vary by OS. The `RENV_PATHS_ROOT` environment variable is used to set the cache location. Have a look at https://rstudio.github.io/renv/reference/paths.html#details for more details.
|
For renv, the cache directory will vary by OS. The `RENV_PATHS_ROOT` environment variable is used to set the cache location. Have a look at https://rstudio.github.io/renv/reference/paths.html#details for more details.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user