mirror of
https://github.com/home-assistant/core.git
synced 2025-07-25 22:27:07 +00:00
Add cache version to GitHub Actions CI (#39277)
This commit is contained in:
parent
4ff376cdd6
commit
44118d8fb6
125
.github/workflows/ci.yaml
vendored
125
.github/workflows/ci.yaml
vendored
@ -10,6 +10,7 @@ on:
|
|||||||
pull_request: ~
|
pull_request: ~
|
||||||
|
|
||||||
env:
|
env:
|
||||||
|
CACHE_VERSION: 1
|
||||||
DEFAULT_PYTHON: 3.7
|
DEFAULT_PYTHON: 3.7
|
||||||
PRE_COMMIT_HOME: ~/.cache/pre-commit
|
PRE_COMMIT_HOME: ~/.cache/pre-commit
|
||||||
|
|
||||||
@ -33,14 +34,15 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
|
||||||
}}-${{ hashFiles('requirements.txt') }}-${{
|
steps.python.outputs.python-version }}-${{
|
||||||
|
hashFiles('requirements.txt') }}-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
hashFiles('requirements_test.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements_test.txt') }}-
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements_test.txt') }}-
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version }}-${{ hashFiles('requirements.txt') }}
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version }}-
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version }}-
|
||||||
- name: Create Python virtual environment
|
- name: Create Python virtual environment
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
@ -58,9 +60,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ env.PRE_COMMIT_HOME }}
|
path: ${{ env.PRE_COMMIT_HOME }}
|
||||||
key: |
|
key: |
|
||||||
${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pre-commit-
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-pre-commit-
|
||||||
- name: Install pre-commit dependencies
|
- name: Install pre-commit dependencies
|
||||||
if: steps.cache-precommit.outputs.cache-hit != 'true'
|
if: steps.cache-precommit.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
@ -85,8 +87,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
|
||||||
}}-${{ hashFiles('requirements.txt') }}-${{
|
steps.python.outputs.python-version }}-${{
|
||||||
|
hashFiles('requirements.txt') }}-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
hashFiles('requirements_test.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
@ -100,7 +103,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ env.PRE_COMMIT_HOME }}
|
path: ${{ env.PRE_COMMIT_HOME }}
|
||||||
key: |
|
key: |
|
||||||
${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Fail job if cache restore failed
|
- name: Fail job if cache restore failed
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
@ -129,8 +132,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
|
||||||
}}-${{ hashFiles('requirements.txt') }}-${{
|
steps.python.outputs.python-version }}-${{
|
||||||
|
hashFiles('requirements.txt') }}-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
hashFiles('requirements_test.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
@ -144,7 +148,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ env.PRE_COMMIT_HOME }}
|
path: ${{ env.PRE_COMMIT_HOME }}
|
||||||
key: |
|
key: |
|
||||||
${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Fail job if cache restore failed
|
- name: Fail job if cache restore failed
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
@ -173,8 +177,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
|
||||||
}}-${{ hashFiles('requirements.txt') }}-${{
|
steps.python.outputs.python-version }}-${{
|
||||||
|
hashFiles('requirements.txt') }}-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
hashFiles('requirements_test.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
@ -188,7 +193,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ env.PRE_COMMIT_HOME }}
|
path: ${{ env.PRE_COMMIT_HOME }}
|
||||||
key: |
|
key: |
|
||||||
${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Fail job if cache restore failed
|
- name: Fail job if cache restore failed
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
@ -239,8 +244,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
|
||||||
}}-${{ hashFiles('requirements.txt') }}-${{
|
steps.python.outputs.python-version }}-${{
|
||||||
|
hashFiles('requirements.txt') }}-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
hashFiles('requirements_test.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
@ -254,7 +260,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ env.PRE_COMMIT_HOME }}
|
path: ${{ env.PRE_COMMIT_HOME }}
|
||||||
key: |
|
key: |
|
||||||
${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Fail job if cache restore failed
|
- name: Fail job if cache restore failed
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
@ -286,8 +292,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
|
||||||
}}-${{ hashFiles('requirements.txt') }}-${{
|
steps.python.outputs.python-version }}-${{
|
||||||
|
hashFiles('requirements.txt') }}-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
hashFiles('requirements_test.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
@ -301,7 +308,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ env.PRE_COMMIT_HOME }}
|
path: ${{ env.PRE_COMMIT_HOME }}
|
||||||
key: |
|
key: |
|
||||||
${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Fail job if cache restore failed
|
- name: Fail job if cache restore failed
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
@ -333,8 +340,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
|
||||||
}}-${{ hashFiles('requirements.txt') }}-${{
|
steps.python.outputs.python-version }}-${{
|
||||||
|
hashFiles('requirements.txt') }}-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
hashFiles('requirements_test.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
@ -348,7 +356,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ env.PRE_COMMIT_HOME }}
|
path: ${{ env.PRE_COMMIT_HOME }}
|
||||||
key: |
|
key: |
|
||||||
${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Fail job if cache restore failed
|
- name: Fail job if cache restore failed
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
@ -377,8 +385,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
|
||||||
}}-${{ hashFiles('requirements.txt') }}-${{
|
steps.python.outputs.python-version }}-${{
|
||||||
|
hashFiles('requirements.txt') }}-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
hashFiles('requirements_test.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
@ -392,7 +401,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ env.PRE_COMMIT_HOME }}
|
path: ${{ env.PRE_COMMIT_HOME }}
|
||||||
key: |
|
key: |
|
||||||
${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Fail job if cache restore failed
|
- name: Fail job if cache restore failed
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
@ -424,8 +433,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
|
||||||
}}-${{ hashFiles('requirements.txt') }}-${{
|
steps.python.outputs.python-version }}-${{
|
||||||
|
hashFiles('requirements.txt') }}-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
hashFiles('requirements_test.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
@ -439,7 +449,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ env.PRE_COMMIT_HOME }}
|
path: ${{ env.PRE_COMMIT_HOME }}
|
||||||
key: |
|
key: |
|
||||||
${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Fail job if cache restore failed
|
- name: Fail job if cache restore failed
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
@ -479,8 +489,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
|
||||||
}}-${{ hashFiles('requirements.txt') }}-${{
|
steps.python.outputs.python-version }}-${{
|
||||||
|
hashFiles('requirements.txt') }}-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
hashFiles('requirements_test.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
@ -494,7 +505,7 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: ${{ env.PRE_COMMIT_HOME }}
|
path: ${{ env.PRE_COMMIT_HOME }}
|
||||||
key: |
|
key: |
|
||||||
${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
|
||||||
- name: Fail job if cache restore failed
|
- name: Fail job if cache restore failed
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
run: |
|
run: |
|
||||||
@ -526,8 +537,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
|
||||||
}}-${{ hashFiles('requirements.txt') }}-${{
|
steps.python.outputs.python-version }}-${{
|
||||||
|
hashFiles('requirements.txt') }}-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
hashFiles('requirements_test.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
@ -558,8 +570,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-base-venv-${{
|
||||||
}}-${{ hashFiles('requirements.txt') }}-${{
|
steps.python.outputs.python-version }}-${{
|
||||||
|
hashFiles('requirements.txt') }}-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
hashFiles('requirements_test.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
@ -589,14 +602,14 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-venv-${{ matrix.python-version }}-${{
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
matrix.python-version }}-${{ hashFiles('requirements_test.txt')
|
||||||
hashFiles('requirements_all.txt') }}-${{
|
}}-${{ hashFiles('requirements_all.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-venv-${{ matrix.python-version }}-${{ hashFiles('requirements_test.txt') }}-${{ hashFiles('requirements_all.txt') }}
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-${{ matrix.python-version }}-${{ hashFiles('requirements_test.txt') }}-${{ hashFiles('requirements_all.txt') }}
|
||||||
${{ runner.os }}-venv-${{ matrix.python-version }}-${{ hashFiles('requirements_test.txt') }}
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-${{ matrix.python-version }}-${{ hashFiles('requirements_test.txt') }}
|
||||||
${{ runner.os }}-venv-${{ matrix.python-version }}-
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-${{ matrix.python-version }}-
|
||||||
- name:
|
- name:
|
||||||
Create full Python ${{ matrix.python-version }} virtual environment
|
Create full Python ${{ matrix.python-version }} virtual environment
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
@ -630,9 +643,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-venv-${{ matrix.python-version }}-${{
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
matrix.python-version }}-${{ hashFiles('requirements_test.txt')
|
||||||
hashFiles('requirements_all.txt') }}-${{
|
}}-${{ hashFiles('requirements_all.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
@ -665,9 +678,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-venv-${{ matrix.python-version }}-${{
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
matrix.python-version }}-${{ hashFiles('requirements_test.txt')
|
||||||
hashFiles('requirements_all.txt') }}-${{
|
}}-${{ hashFiles('requirements_all.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
@ -702,9 +715,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-venv-${{ matrix.python-version }}-${{
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
matrix.python-version }}-${{ hashFiles('requirements_test.txt')
|
||||||
hashFiles('requirements_all.txt') }}-${{
|
}}-${{ hashFiles('requirements_all.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
@ -763,9 +776,9 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: venv
|
path: venv
|
||||||
key: >-
|
key: >-
|
||||||
${{ runner.os }}-venv-${{ matrix.python-version }}-${{
|
${{ env.CACHE_VERSION}}-${{ runner.os }}-venv-${{
|
||||||
hashFiles('requirements_test.txt') }}-${{
|
matrix.python-version }}-${{ hashFiles('requirements_test.txt')
|
||||||
hashFiles('requirements_all.txt') }}-${{
|
}}-${{ hashFiles('requirements_all.txt') }}-${{
|
||||||
hashFiles('homeassistant/package_constraints.txt') }}
|
hashFiles('homeassistant/package_constraints.txt') }}
|
||||||
- name: Fail job if Python cache restore failed
|
- name: Fail job if Python cache restore failed
|
||||||
if: steps.cache-venv.outputs.cache-hit != 'true'
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user