Skip to content

Commit

Permalink
Add python version to venv cache key
Browse files Browse the repository at this point in the history
  • Loading branch information
mfogel committed Jul 15, 2023
1 parent 01af0f0 commit 1b17b0f
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ jobs:
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ hashFiles('poetry.lock') }}
key: venv-py3.10-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
Expand Down Expand Up @@ -140,6 +140,8 @@ jobs:

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: "3.11"

- name: Install Poetry
uses: snok/install-poetry@v1
Expand All @@ -152,7 +154,7 @@ jobs:
uses: actions/cache@v2
with:
path: .venv
key: venv-${{ hashFiles('poetry.lock') }}
key: venv-py3.11-${{ hashFiles('poetry.lock') }}

- name: Install dependencies
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
Expand Down

0 comments on commit 1b17b0f

Please sign in to comment.