-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathaction.yml
35 lines (31 loc) · 973 Bytes
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
name: 'restore or create a python virtualenv'
description: '1-liner to restore and activate a cached virtualenv, or create a new one.'
author: 'syphar'
runs:
using: 'node16'
main: 'dist/restore/index.js'
post: 'dist/save/index.js'
post-if: 'success()'
inputs:
custom_cache_key_element:
required: false
description: "custom element that will be used when constructing the cache key"
default: "v1"
requirement_files:
required: false
description: "requirements-files to use for building the cache key"
default: |
**/requirements*.txt
**/requirements/*.txt
**/Pipfile.lock
**/poetry.lock
custom_virtualenv_dir:
required: false
description: "custom directory for the virtual environment"
default: ".venv"
outputs:
cache-hit:
description: "A boolean value to indicate if a cache was restored"
virtualenv-directory:
description: "the path to the restored or created virtualenv"