mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-16 16:01:22 +02:00
Add virtualenv for title and fix wrong format
This commit is contained in:
parent
8a5e2357ea
commit
f1938ac481
1 changed files with 6 additions and 6 deletions
12
examples.md
12
examples.md
|
@ -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](#python---pip)
|
- [Python - pip, virtuelenv](#python---pip,-virtuelenv)
|
||||||
|
|
||||||
## Node - npm
|
## Node - npm
|
||||||
|
|
||||||
|
@ -111,6 +111,7 @@ uses: actions/cache@preview
|
||||||
${{ runner.os }}-go-
|
${{ runner.os }}-go-
|
||||||
```
|
```
|
||||||
|
|
||||||
|
<<<<<<< HEAD
|
||||||
## Elixir - Mix
|
## Elixir - Mix
|
||||||
```yaml
|
```yaml
|
||||||
- uses: actions/cache@preview
|
- uses: actions/cache@preview
|
||||||
|
@ -122,6 +123,9 @@ uses: actions/cache@preview
|
||||||
```
|
```
|
||||||
|
|
||||||
## Python - pip
|
## Python - pip
|
||||||
|
=======
|
||||||
|
## Python - pip, virtuelenv
|
||||||
|
>>>>>>> Add virtualenv for title and fix wrong format
|
||||||
|
|
||||||
Use with virtual environments.
|
Use with virtual environments.
|
||||||
|
|
||||||
|
@ -129,11 +133,7 @@ Use with virtual environments.
|
||||||
- uses: actions/cache@preview
|
- uses: actions/cache@preview
|
||||||
with:
|
with:
|
||||||
path: .venv
|
path: .venv
|
||||||
key: ${{ runner.os }}-pip-${{ hashFiles(format('{0}/{1}', github.workspace, '**/requirements.txt')) }}
|
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pip-
|
${{ runner.os }}-pip-
|
||||||
- run: |
|
|
||||||
python -m venv .venv
|
|
||||||
source .venv/bin/activate
|
|
||||||
python -m pip install -r requirements.txt
|
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Reference in a new issue