mirror of https://github.com/actions/cache.git
Compare commits
2 Commits
4703407f70
...
778e8601d6
Author | SHA1 | Date |
---|---|---|
Melvyn Sopacua | 778e8601d6 | |
Melvyn Sopacua | ce207c8817 |
|
@ -542,6 +542,15 @@ jobs:
|
|||
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
|
||||
|
||||
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…
Reference in New Issue