From bb606bb1ab04335b4c48d4fd9c5ecf11485859d1 Mon Sep 17 00:00:00 2001 From: Radonirinaunimi Date: Mon, 27 Feb 2023 22:48:59 +0100 Subject: [PATCH] Remove creation of poetry virtual env --- .github/workflows/pypi.yml | 21 +++++++++------------ 1 file changed, 9 insertions(+), 12 deletions(-) diff --git a/.github/workflows/pypi.yml b/.github/workflows/pypi.yml index a9d7881b..fe9a0930 100644 --- a/.github/workflows/pypi.yml +++ b/.github/workflows/pypi.yml @@ -23,24 +23,21 @@ jobs: - name: Install and configure Poetry uses: snok/install-poetry@v1 with: - virtualenvs-path: ~/.virtualenvs + virtualenvs-create: false installer-parallel: true - - name: Cache Poetry virtualenv - uses: actions/cache@v2 - id: cache - with: - path: ~/.virtualenvs - key: ${{ runner.os }}-py-${{ steps.setup-python.outputs.python-version }}-poetry-${{ hashFiles('poetry.lock') }} - name: Install version management tool run: | # same poetry env PIP="$(head -n1 $(which poetry) | cut -c 3-) -m pip" ${PIP} install poetry-dynamic-versioning - - name: Install dependencies - run: | - poetry install --no-interaction --no-root --with test - poetry run nns get theory - if: steps.cache.outputs.cache-hit != 'true' + - name: Install dependencies 📦 + run: poetry install --no-interaction --no-root --with test ${{ inputs.poetry-extras }} + - name: Install project + # it is required to repeat extras, otherwise they will be removed from + # the environment + run: poetry install --no-interaction ${{ inputs.poetry-extras }} + - name: Download the theory + run: poetry run nns get theory - name: Install task runner run: pip install poethepoet - name: Test