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
This commit is contained in:
Erick Friis 2024-02-06 12:55:01 -08:00 committed by GitHub
parent 980e30c361
commit 37062549f9
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 4 deletions

View File

@ -32,7 +32,7 @@ runs:
with: with:
python-version: ${{ inputs.python-version }} python-version: ${{ inputs.python-version }}
- uses: actions/cache@v3 - uses: actions/cache@v4
id: cache-bin-poetry id: cache-bin-poetry
name: Cache Poetry binary - Python ${{ inputs.python-version }} name: Cache Poetry binary - Python ${{ inputs.python-version }}
env: env:
@ -79,7 +79,7 @@ runs:
run: pipx install "poetry==$POETRY_VERSION" --python '${{ steps.setup-python.outputs.python-path }}' --verbose run: pipx install "poetry==$POETRY_VERSION" --python '${{ steps.setup-python.outputs.python-path }}' --verbose
- name: Restore pip and poetry cached dependencies - name: Restore pip and poetry cached dependencies
uses: actions/cache@v3 uses: actions/cache@v4
env: env:
SEGMENT_DOWNLOAD_TIMEOUT_MIN: "4" SEGMENT_DOWNLOAD_TIMEOUT_MIN: "4"
WORKDIR: ${{ inputs.working-directory == '' && '.' || inputs.working-directory }} WORKDIR: ${{ inputs.working-directory == '' && '.' || inputs.working-directory }}

View File

@ -80,7 +80,7 @@ jobs:
poetry run pip install -e "$LANGCHAIN_LOCATION" poetry run pip install -e "$LANGCHAIN_LOCATION"
- name: Get .mypy_cache to speed up mypy - name: Get .mypy_cache to speed up mypy
uses: actions/cache@v3 uses: actions/cache@v4
env: env:
SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2" SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2"
with: with:
@ -114,7 +114,7 @@ jobs:
poetry install --with test,test_integration poetry install --with test,test_integration
- name: Get .mypy_cache_test to speed up mypy - name: Get .mypy_cache_test to speed up mypy
uses: actions/cache@v3 uses: actions/cache@v4
env: env:
SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2" SEGMENT_DOWNLOAD_TIMEOUT_MIN: "2"
with: with: