Skip to content

Commit

Permalink
Include poetry cache key in venv cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
agriyakhetarpal committed Nov 19, 2024
1 parent a527846 commit 2548909
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/actions/install-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ runs:
python-version: ${{ inputs.python-version }}

- name: Load cached Poetry installation
id: cached-poetry-installation
uses: actions/cache@v4
with:
path: ~/.local # the path depends on the OS
key: poetry-5 # increment to reset cache
key: poetry-1 # increment to reset cache

- name: Install poetry
uses: snok/install-poetry@v1
Expand All @@ -40,7 +41,7 @@ runs:
uses: actions/cache@v4
with:
path: .venv
key: venv-${{ runner.os }}-${{ steps.set-up-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
key: venv-${{ runner.os }}-${{ steps.set-up-python.outputs.python-version }}-${{ steps.cached-poetry-installation.inputs.key }}-${{ hashFiles('**/poetry.lock') }}

- name: Install dependencies
shell: bash
Expand Down

0 comments on commit 2548909

Please sign in to comment.