From b00fd1dbde7f5a850da69aa5064c574066f69022 Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Thu, 2 May 2024 13:12:32 -0400 Subject: [PATCH] infra: Undo gh cache removal (#21210) Co-authored-by: Nuno Campos --- .github/workflows/_lint.yml | 34 +++++++++++++++++----------------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/.github/workflows/_lint.yml b/.github/workflows/_lint.yml index c207afd7ca5..e2e25fb8ebc 100644 --- a/.github/workflows/_lint.yml +++ b/.github/workflows/_lint.yml @@ -44,7 +44,7 @@ jobs: python-version: ${{ matrix.python-version }} poetry-version: ${{ env.POETRY_VERSION }} working-directory: ${{ inputs.working-directory }} -# cache-key: lint-with-extras + cache-key: lint-with-extras - name: Check Poetry File shell: bash @@ -79,14 +79,14 @@ jobs: run: | poetry run pip install -e "$LANGCHAIN_LOCATION" -# - name: Get .mypy_cache to speed up mypy -# uses: actions/cache@v4 -# env: -# SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2" -# with: -# path: | -# ${{ env.WORKDIR }}/.mypy_cache -# key: mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }} + - name: Get .mypy_cache to speed up mypy + uses: actions/cache@v4 + env: + SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2" + with: + path: | + ${{ env.WORKDIR }}/.mypy_cache + key: mypy-lint-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }} - name: Analysing the code with our lint @@ -113,14 +113,14 @@ jobs: run: | poetry install --with test,test_integration -# - name: Get .mypy_cache_test to speed up mypy -# uses: actions/cache@v4 -# env: -# SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2" -# with: -# path: | -# ${{ env.WORKDIR }}/.mypy_cache_test -# key: mypy-test-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }} + - name: Get .mypy_cache_test to speed up mypy + uses: actions/cache@v4 + env: + SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2" + with: + path: | + ${{ env.WORKDIR }}/.mypy_cache_test + key: mypy-test-${{ runner.os }}-${{ runner.arch }}-py${{ matrix.python-version }}-${{ inputs.working-directory }}-${{ hashFiles(format('{0}/poetry.lock', inputs.working-directory)) }} - name: Analysing the code with our lint working-directory: ${{ inputs.working-directory }}