Ensure python and pipx are installed

This commit is contained in:
TSR Berry 2023-10-10 14:34:26 +02:00
parent df0b94ba77
commit 9560921805
No known key found for this signature in database
GPG key ID: 52353C0A4CCA15E2

View file

@ -9,7 +9,21 @@ runs:
echo "mako=$(realpath '${{ github.action_path }}/../../../')" >> $GITHUB_OUTPUT
shell: bash
- run: pipx install poetry
- uses: actions/setup-python@v4
with:
cache: 'poetry'
- name: Ensure pipx is available
run: |
if ! command -v pipx > /dev/null 2>&1; then
echo "$HOME/.local/bin" >> $GITHUB_PATH
python3 -m pip install --user pipx
python3 -m pipx ensurepath
fi
shell: bash
- name: Install poetry
run: pipx install poetry
shell: bash
- run: |