File tree Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Expand file tree Collapse file tree 1 file changed +9
-12
lines changed Original file line number Diff line number Diff line change @@ -23,24 +23,21 @@ jobs:
23
23
- name : Install and configure Poetry
24
24
uses : snok/install-poetry@v1
25
25
with :
26
- virtualenvs-path : ~/.virtualenvs
26
+ virtualenvs-create : false
27
27
installer-parallel : true
28
- - name : Cache Poetry virtualenv
29
- uses : actions/cache@v2
30
- id : cache
31
- with :
32
- path : ~/.virtualenvs
33
- key : ${{ runner.os }}-py-${{ steps.setup-python.outputs.python-version }}-poetry-${{ hashFiles('poetry.lock') }}
34
28
- name : Install version management tool
35
29
run : |
36
30
# same poetry env
37
31
PIP="$(head -n1 $(which poetry) | cut -c 3-) -m pip"
38
32
${PIP} install poetry-dynamic-versioning
39
- - name : Install dependencies
40
- run : |
41
- poetry install --no-interaction --no-root --with test
42
- poetry run nns get theory
43
- if : steps.cache.outputs.cache-hit != 'true'
33
+ - name : Install dependencies 📦
34
+ run : poetry install --no-interaction --no-root --with test ${{ inputs.poetry-extras }}
35
+ - name : Install project
36
+ # it is required to repeat extras, otherwise they will be removed from
37
+ # the environment
38
+ run : poetry install --no-interaction ${{ inputs.poetry-extras }}
39
+ - name : Download the theory
40
+ run : poetry run nns get theory
44
41
- name : Install task runner
45
42
run : pip install poethepoet
46
43
- name : Test
You can’t perform that action at this time.
0 commit comments