Merge ce207c8817be230ca9aa568013514b0cdcf0279b into 704facf57e6136b1bc63b828d79edcd491f0ee84

This commit is contained in:
Melvyn Sopacua 2023-09-08 16:41:31 +10:00 committed by GitHub
commit 89b7a7db64
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -541,6 +541,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.