forked from snok/install-poetry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
43 lines (43 loc) · 1.55 KB
/
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
36
37
38
39
40
41
42
43
name: "Install Poetry Action"
author: "Sondre Lillebø Gundersen <[email protected]>"
description: "Installs and configures Poetry"
branding:
icon: "package"
color: "green"
inputs:
version:
description: "The Poetry version to install"
required: true
default: "latest"
virtualenvs-create:
description: "Whether Poetry should create a virtualenv or not"
required: false
default: "true"
virtualenvs-in-project:
description: "Whether Poetry should create virtualenvs in the project directory or not"
required: false
default: "false"
virtualenvs-path:
description: "The Poetry virtualenv path"
required: false
default: "{cache-dir}/virtualenvs"
installer-parallel:
description: "Whether to install many packages at once or one by one. This can fix PyPI DNS resolution errors, but also slows down the installation"
required: false
default: "true"
installation-arguments:
description: "Arguments passed directly to the Poetry installation script. For example --force."
required: false
runs:
using: "composite"
steps:
- name: Install and configure Poetry
run: $GITHUB_ACTION_PATH/main.sh
shell: bash
env:
VERSION: ${{ inputs.version }}
VIRTUALENVS_CREATE: ${{ inputs.virtualenvs-create }}
VIRTUALENVS_IN_PROJECT: ${{ inputs.virtualenvs-in-project }}
VIRTUALENVS_PATH: ${{ inputs.virtualenvs-path }}
INSTALLER_PARALLEL: ${{ inputs.installer-parallel }}
INSTALLATION_ARGUMENTS: ${{ inputs.installation-arguments }}