Skip to content

Commit

Permalink
use pipx to isolate poetry
Browse files Browse the repository at this point in the history
  • Loading branch information
NargiT authored and abatilo committed Jul 11, 2023
1 parent 437d4fa commit 3d0f720
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@ inputs:
runs:
using: "composite"
steps:
- run: |
pip install --user pipx
pipx ensurepath
- if: ${{ inputs.poetry-version == 'latest' }}
run: |
pip install -U poetry
pipx install -U poetry
shell: bash
- if: ${{ inputs.poetry-version != 'latest' }}
run: |
pip install poetry==${{ inputs.poetry-version }}
pipx install poetry==${{ inputs.poetry-version }}
shell: bash

0 comments on commit 3d0f720

Please sign in to comment.