diff --git a/.github/workflows/ci-model-regression-on-schedule.yml b/.github/workflows/ci-model-regression-on-schedule.yml index 01454e64b84f..13fca9109672 100644 --- a/.github/workflows/ci-model-regression-on-schedule.yml +++ b/.github/workflows/ci-model-regression-on-schedule.yml @@ -150,7 +150,7 @@ jobs: if: steps.set_dataset_config_vars.outputs.is_dataset_exists == 'true' && steps.set_dataset_config_vars.outputs.is_config_exists == 'true' with: path: ~/.cache/pypoetry/virtualenvs - key: ${{ runner.os }}-poetry-3.8-${{ hashFiles('**/poetry.lock') }} + key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-3.8-${{ hashFiles('**/poetry.lock') }} - name: Install Dependencies 📦 if: steps.set_dataset_config_vars.outputs.is_dataset_exists == 'true' && steps.set_dataset_config_vars.outputs.is_config_exists == 'true' diff --git a/.github/workflows/ci-model-regression.yml b/.github/workflows/ci-model-regression.yml index ec1f04980796..37701b61e761 100644 --- a/.github/workflows/ci-model-regression.yml +++ b/.github/workflows/ci-model-regression.yml @@ -243,7 +243,7 @@ jobs: if: steps.set_dataset_config_vars.outputs.is_dataset_exists == 'true' && steps.set_dataset_config_vars.outputs.is_config_exists == 'true' with: path: ~/.cache/pypoetry/virtualenvs - key: ${{ runner.os }}-poetry-3.8-${{ hashFiles('**/poetry.lock') }} + key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-3.8-${{ hashFiles('**/poetry.lock') }} - name: Install Dependencies 📦 if: steps.set_dataset_config_vars.outputs.is_dataset_exists == 'true' && steps.set_dataset_config_vars.outputs.is_config_exists == 'true' @@ -388,7 +388,7 @@ jobs: if: steps.set_dataset_config_vars.outputs.is_dataset_exists == 'true' && steps.set_dataset_config_vars.outputs.is_config_exists == 'true' with: path: ~/.cache/pypoetry/virtualenvs - key: ${{ runner.os }}-poetry-3.8-${{ hashFiles('**/poetry.lock') }} + key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-3.8-${{ hashFiles('**/poetry.lock') }} - name: Install Dependencies 📦 if: steps.set_dataset_config_vars.outputs.is_dataset_exists == 'true' && steps.set_dataset_config_vars.outputs.is_config_exists == 'true' diff --git a/.github/workflows/continous-integration.yml b/.github/workflows/continous-integration.yml index 602977daae3d..d7c8d523fe36 100644 --- a/.github/workflows/continous-integration.yml +++ b/.github/workflows/continous-integration.yml @@ -84,7 +84,7 @@ jobs: uses: actions/cache@v1 with: path: ~/.cache/pypoetry/virtualenvs - key: ${{ runner.os }}-poetry-3.7-${{ hashFiles('**/poetry.lock') }} + key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-3.7-${{ hashFiles('**/poetry.lock') }} restore-keys: ${{ runner.os }}-poetry-3.7 - name: Load Yarn Cached Packages ⬇ @@ -145,7 +145,7 @@ jobs: uses: actions/cache@v1 with: path: ~/.cache/pypoetry/virtualenvs - key: ${{ runner.os }}-poetry-3.7-${{ hashFiles('**/poetry.lock') }} + key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-3.7-${{ hashFiles('**/poetry.lock') }} restore-keys: ${{ runner.os }}-poetry-3.7 - name: Install Dependencies 📦 @@ -228,12 +228,11 @@ jobs: poetry config virtualenvs.in-project true - name: Load Poetry Cached Libraries ⬇ - if: needs.changes.outputs.backend == 'true' + if: needs.changes.outputs.backend == 'true' && matrix.os != 'windows-latest' uses: actions/cache@v1 with: path: .venv - key: ${{ runner.os }}-poetry-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} - restore-keys: ${{ runner.os }}-poetry-${{ matrix.python-version }} + key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-${{ matrix.python-version }}-${{ hashFiles('**/poetry.lock') }} - name: Install Dependencies (Linux) 📦 if: needs.changes.outputs.backend == 'true' && matrix.os == 'ubuntu-latest' diff --git a/.github/workflows/documentation.yml b/.github/workflows/documentation.yml index 71871e39f6c7..17aafc6512c2 100644 --- a/.github/workflows/documentation.yml +++ b/.github/workflows/documentation.yml @@ -50,7 +50,7 @@ jobs: uses: actions/cache@v1 with: path: ~/.cache/pypoetry/virtualenvs - key: ${{ runner.os }}-poetry-3.6-non-full-${{ hashFiles('**/poetry.lock') }} + key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-3.6-non-full-${{ hashFiles('**/poetry.lock') }} restore-keys: ${{ runner.os }}-poetry-3.6-non-full - name: Load Yarn Cached Packages ⬇ diff --git a/.github/workflows/security-scans.yml b/.github/workflows/security-scans.yml index a435fb65d970..6092b1bc0722 100644 --- a/.github/workflows/security-scans.yml +++ b/.github/workflows/security-scans.yml @@ -80,7 +80,7 @@ jobs: uses: actions/cache@v1 with: path: .venv - key: ${{ runner.os }}-poetry-3.7-${{ hashFiles('**/poetry.lock') }} + key: ${{ runner.os }}-poetry-${{ env.POETRY_VERSION }}-3.7-${{ hashFiles('**/poetry.lock') }} restore-keys: ${{ runner.os }}-poetry-3.7 - name: Install Dependencies (Linux) 📦