Compare commits

...

5 Commits

Author SHA1 Message Date
Melvyn Sopacua
89b7a7db64
Merge ce207c8817 into 704facf57e 2023-09-08 16:41:31 +10:00
Bethany
704facf57e
Merge pull request #1236 from actions/bethanyj28/bump-version
Bump action version to 3.3.2
2023-09-07 16:31:19 -04:00
bethanyj28
17e2888746 Add to RELEASES.md 2023-09-06 14:41:49 -04:00
bethanyj28
667d8fdfa2 bump action version to 3.3.2 2023-09-06 14:15:33 -04:00
Melvyn Sopacua
ce207c8817
doc(python-pipenv): Add run example
Using the cache is only effective when not using install as it will run
`pipenv --rm` if it detects an old environment. On top of that, pip is a
lot faster at detecting satisfied requirements.
2021-03-27 16:12:34 +01:00
4 changed files with 16 additions and 3 deletions

View File

@ -107,3 +107,7 @@
### 3.3.1
- Reduced segment size to 128MB and segment timeout to 10 minutes to fail fast in case the cache download is stuck.
### 3.3.2
- Fixes bug with Azure SDK causing blob downloads to get stuck.

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.

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{
"name": "cache",
"version": "3.3.1",
"version": "3.3.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "cache",
"version": "3.3.1",
"version": "3.3.2",
"license": "MIT",
"dependencies": {
"@actions/cache": "^3.2.2",

View File

@ -1,6 +1,6 @@
{
"name": "cache",
"version": "3.3.1",
"version": "3.3.2",
"private": true,
"description": "Cache dependencies and build outputs",
"main": "dist/restore/index.js",