File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,12 @@ inputs:
24
24
`poetry install --with ...`.
25
25
required : false
26
26
default : " "
27
+ install-project :
28
+ description : >
29
+ Set to "false" to disable installing of the project, instead only install
30
+ deps.
31
+ required : false
32
+ default : " true"
27
33
runs :
28
34
using : composite
29
35
steps :
@@ -95,13 +101,13 @@ runs:
95
101
96
102
- name : Install project (no extras or groups)
97
103
if : inputs.extras == '' && inputs.groups == ''
98
- run : poetry install --no-interaction
104
+ run : poetry install --no-interaction ${{ inputs.install-project != 'true' && '--no-root' || '' }}
99
105
shell : bash
100
106
101
107
- name : Install project with --extras=${{ inputs.extras }} --with=${{ inputs.groups }}
102
108
if : inputs.extras != '' || inputs.groups != ''
103
109
# (Empty extras or groups lists are fine.)
104
- run : poetry install --no-interaction --extras="${{ inputs.extras }}" --with="${{ inputs.groups }}"
110
+ run : poetry install --no-interaction --extras="${{ inputs.extras }}" --with="${{ inputs.groups }}" ${{ inputs.install-project != 'true' && '--no-root' || '' }}
105
111
shell : bash
106
112
107
113
# For debugging---let's just check what we're working with.
You can’t perform that action at this time.
0 commit comments