Skip to content

Commit

Permalink
Remove creation of poetry virtual env
Browse files Browse the repository at this point in the history
  • Loading branch information
Radonirinaunimi committed Feb 27, 2023
1 parent 7c59725 commit bb606bb
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions .github/workflows/pypi.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit bb606bb

Please sign in to comment.