|
|
@ -10,7 +10,7 @@
|
|
|
|
- [Ruby - Gem](#ruby---gem)
|
|
|
|
- [Ruby - Gem](#ruby---gem)
|
|
|
|
- [Go - Modules](#go---modules)
|
|
|
|
- [Go - Modules](#go---modules)
|
|
|
|
- [Elixir - Mix](#elixir---mix)
|
|
|
|
- [Elixir - Mix](#elixir---mix)
|
|
|
|
- [Python - pip, virtualenv](#python---pip-virtualenv)
|
|
|
|
- [Python - pip](#python---pip)
|
|
|
|
|
|
|
|
|
|
|
|
## Node - npm
|
|
|
|
## Node - npm
|
|
|
|
|
|
|
|
|
|
|
@ -121,14 +121,12 @@ uses: actions/cache@preview
|
|
|
|
${{ runner.os }}-mix-
|
|
|
|
${{ runner.os }}-mix-
|
|
|
|
```
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
## Python - pip, virtualenv
|
|
|
|
## Python - pip
|
|
|
|
|
|
|
|
|
|
|
|
If caching the virtualenv, you have to activate the environment for each tasks.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
```yaml
|
|
|
|
- uses: actions/cache@preview
|
|
|
|
- uses: actions/cache@preview
|
|
|
|
with:
|
|
|
|
with:
|
|
|
|
path: .venv
|
|
|
|
path: ~/.cache/pip
|
|
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
|
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
|
|
|
restore-keys: |
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-pip-
|
|
|
|
${{ runner.os }}-pip-
|
|
|
|