Skip to content

Commit 7fa446c

Browse files
authored
Cache poetry venv with pyproject.toml in key (#1436)
1 parent b57f0f4 commit 7fa446c

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,13 @@ jobs:
3939
run: |
4040
export PATH="$HOME/.poetry/bin:$PATH"
4141
echo "::set-output name=poetry-venv-dir::$(poetry config virtualenvs.path)"
42-
echo "::set-output name=version::$(poetry version -s)"
4342
echo "::set-output name=date::$(/bin/date -u "+%m%w%Y")"
4443
4544
- name: Setup Poetry cache
4645
uses: actions/cache@v2
4746
with:
4847
path: ${{ steps.cache-vars.outputs.poetry-venv-dir }}
49-
key: ${{ runner.os }}-poetry-${{ steps.cache-vars.outputs.version }}-${{ env.pythonLocation }}-${{ hashFiles('poetry.lock') }}
48+
key: ${{ runner.os }}-poetry-${{ env.pythonLocation }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }}
5049

5150
- name: Install and cache ffmpeg (all OS)
5251
uses: FedericoCarboni/setup-ffmpeg@v1

0 commit comments

Comments
 (0)