Skip to content

Commit bb606bb

Browse files
Remove creation of poetry virtual env
1 parent 7c59725 commit bb606bb

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

.github/workflows/pypi.yml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,24 +23,21 @@ jobs:
2323
- name: Install and configure Poetry
2424
uses: snok/install-poetry@v1
2525
with:
26-
virtualenvs-path: ~/.virtualenvs
26+
virtualenvs-create: false
2727
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') }}
3428
- name: Install version management tool
3529
run: |
3630
# same poetry env
3731
PIP="$(head -n1 $(which poetry) | cut -c 3-) -m pip"
3832
${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
4441
- name: Install task runner
4542
run: pip install poethepoet
4643
- name: Test

0 commit comments

Comments
 (0)