From a3174a88f5a2d360b062f4cdd5b8afc588059613 Mon Sep 17 00:00:00 2001 From: Franck Nijhof Date: Wed, 15 Jul 2020 15:08:38 +0200 Subject: [PATCH] Don't reuse venv cache when Python version changes (#37881) --- .github/workflows/ci.yaml | 19 ++++++++++++------- 1 file changed, 12 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index c5706ec7da3..a17a4dc318f 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -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: