diff --git a/examples.md b/examples.md index ac4630d..4663938 100644 --- a/examples.md +++ b/examples.md @@ -417,6 +417,15 @@ jobs: ${{ runner.os }}-pipenv- ``` +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. Look at https://rstudio.github.io/renv/articles/renv.html#cache