Skip to content

Commit

Permalink
Feature: Cache poetry installation (#249)
Browse files Browse the repository at this point in the history
  • Loading branch information
tobbber authored Feb 5, 2025
1 parent bf2e964 commit c7701d9
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions actions/python-setup-poetry/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,17 @@ runs:
python3 -m pipx ensurepath
shell: bash

- name: Cache poetry
id: cache-poetry
uses: actions/cache@v4
with:
path: |
/opt/pipx/venvs/poetry
/opt/pipx_bin/poetry
key: poetry${{ inputs.poetry-version }}-python${{ inputs.python-version }}-${{ runner.os }}

- name: Install Poetry ${{ inputs.poetry-version }}
if: steps.cache-poetry.outputs.cache-hit != 'true'
run: pipx install poetry==${{ inputs.poetry-version }}
shell: bash

Expand Down

0 comments on commit c7701d9

Please sign in to comment.