From 37062549f9704765b147330b11988d8f5151f301 Mon Sep 17 00:00:00 2001 From: Erick Friis Date: Tue, 6 Feb 2024 12:55:01 -0800 Subject: [PATCH] infra: update to cache v4 (#17126) stop using nodejs 16. Use 20 (stop deprecation annotation on all ci) Changelog: https://github.com/actions/cache?tab=readme-ov-file#whats-new --- .github/actions/poetry_setup/action.yml | 4 ++-- .github/workflows/_lint.yml | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/actions/poetry_setup/action.yml b/.github/actions/poetry_setup/action.yml index 5aef4970ba7..68b099f0e55 100644 --- a/.github/actions/poetry_setup/action.yml +++ b/.github/actions/poetry_setup/action.yml @@ -32,7 +32,7 @@ runs: with: python-version: ${{ inputs.python-version }} - - uses: actions/cache@v3 + - uses: actions/cache@v4 id: cache-bin-poetry name: Cache Poetry binary - Python ${{ inputs.python-version }} env: @@ -79,7 +79,7 @@ runs: run: pipx install "poetry==$POETRY_VERSION" --python '${{ steps.setup-python.outputs.python-path }}' --verbose - name: Restore pip and poetry cached dependencies - uses: actions/cache@v3 + uses: actions/cache@v4 env: SEGMENT_DOWNLOAD_TIMEOUT_MIN: "4" WORKDIR: ${{ inputs.working-directory == '' && '.' || inputs.working-directory }} diff --git a/.github/workflows/_lint.yml b/.github/workflows/_lint.yml index 8f07db9afb6..e2e25fb8ebc 100644 --- a/.github/workflows/_lint.yml +++ b/.github/workflows/_lint.yml @@ -80,7 +80,7 @@ jobs: poetry run pip install -e "$LANGCHAIN_LOCATION" - name: Get .mypy_cache to speed up mypy - uses: actions/cache@v3 + uses: actions/cache@v4 env: SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2" with: @@ -114,7 +114,7 @@ jobs: poetry install --with test,test_integration - name: Get .mypy_cache_test to speed up mypy - uses: actions/cache@v3 + uses: actions/cache@v4 env: SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2" with: