Invalidate CI cache when bumping dependencies, part 2 (#62412)

pull/62389/head
Franck Nijhof 2021-12-20 18:09:36 +01:00 committed by GitHub
parent ac0f655fd6
commit c931044d46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 4 deletions

View File

@ -522,10 +522,15 @@ jobs:
key: >- key: >-
${{ runner.os }}-${{ matrix.python-version }}-${{ ${{ runner.os }}-${{ matrix.python-version }}-${{
steps.generate-python-key.outputs.key }} steps.generate-python-key.outputs.key }}
restore-keys: | # Temporary disabling the restore of environments when bumping
${{ runner.os }}-${{ matrix.python-version }}-venv-${{ env.CACHE_VERSION }}-${{ hashFiles('requirements_test.txt') }}-${{ hashFiles('requirements_all.txt') }}- # a dependency. It seems that we are experiencing issues with
${{ runner.os }}-${{ matrix.python-version }}-venv-${{ env.CACHE_VERSION }}-${{ hashFiles('requirements_test.txt') }}- # restoring environments in GitHub Actions, although unclear why.
${{ runner.os }}-${{ matrix.python-version }}-venv-${{ env.CACHE_VERSION }}- # First attempt: https://github.com/home-assistant/core/pull/62383
#
# restore-keys: |
# ${{ runner.os }}-${{ matrix.python-version }}-venv-${{ env.CACHE_VERSION }}-${{ hashFiles('requirements_test.txt') }}-${{ hashFiles('requirements_all.txt') }}-
# ${{ runner.os }}-${{ matrix.python-version }}-venv-${{ env.CACHE_VERSION }}-${{ hashFiles('requirements_test.txt') }}-
# ${{ runner.os }}-${{ matrix.python-version }}-venv-${{ env.CACHE_VERSION }}-
- name: Create full Python ${{ matrix.python-version }} virtual environment - name: Create full Python ${{ matrix.python-version }} virtual environment
if: steps.cache-venv.outputs.cache-hit != 'true' if: steps.cache-venv.outputs.cache-hit != 'true'
run: | run: |