1
mirror of https://github.com/home-assistant/core synced 2024-09-15 17:29:45 +02:00

Don't reuse venv cache when Python version changes (#37881)

This commit is contained in:
Franck Nijhof 2020-07-15 15:08:38 +02:00 committed by GitHub
parent c3724186cf
commit a3174a88f5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -41,7 +41,6 @@ jobs:
${{ 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') }}
${{ runner.os }}-base-venv-${{ steps.python.outputs.python-version }}-
${{ runner.os }}-base-venv-
- name: Create Python virtual environment
if: steps.cache-venv.outputs.cache-hit != 'true'
run: |
@ -583,7 +582,8 @@ jobs:
steps:
- name: Check out code from GitHub
uses: actions/checkout@v2
- name: Restore full Python ${{ matrix.python-version }} virtual environment
- name:
Restore full Python ${{ matrix.python-version }} virtual environment
id: cache-venv
uses: actions/cache@v2
with:
@ -597,7 +597,8 @@ jobs:
${{ runner.os }}-venv-${{ matrix.python-version }}-${{ hashFiles('requirements_test.txt') }}-${{ hashFiles('requirements_all.txt') }}
${{ runner.os }}-venv-${{ matrix.python-version }}-${{ hashFiles('requirements_test.txt') }}
${{ runner.os }}-venv-${{ matrix.python-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'
run: |
python -m venv venv
@ -622,7 +623,8 @@ jobs:
steps:
- name: Check out code from GitHub
uses: actions/checkout@v2
- name: Restore full Python ${{ matrix.python-version }} virtual environment
- name:
Restore full Python ${{ matrix.python-version }} virtual environment
id: cache-venv
uses: actions/cache@v2
with:
@ -656,7 +658,8 @@ jobs:
steps:
- name: Check out code from GitHub
uses: actions/checkout@v2
- name: Restore full Python ${{ matrix.python-version }} virtual environment
- name:
Restore full Python ${{ matrix.python-version }} virtual environment
id: cache-venv
uses: actions/cache@v2
with:
@ -692,7 +695,8 @@ jobs:
steps:
- name: Check out code from GitHub
uses: actions/checkout@v2
- name: Restore full Python ${{ matrix.python-version }} virtual environment
- name:
Restore full Python ${{ matrix.python-version }} virtual environment
id: cache-venv
uses: actions/cache@v2
with:
@ -752,7 +756,8 @@ jobs:
steps:
- name: Check out code from GitHub
uses: actions/checkout@v2
- name: Restore full Python ${{ matrix.python-version }} virtual environment
- name:
Restore full Python ${{ matrix.python-version }} virtual environment
id: cache-venv
uses: actions/cache@v2
with: