From 95a1b598fefbdb4c28db53e493d5f3242129a5f2 Mon Sep 17 00:00:00 2001 From: Predrag Gruevski <2348618+obi1kenobi@users.noreply.github.com> Date: Mon, 23 Oct 2023 10:01:33 -0400 Subject: [PATCH] Update to `actions/checkout@v4`. (#11951) We don't use any of the new functionality at the moment. Just making sure we don't fall back on versions and fail to benefit from new patches. This is an easy upgrade and it's always harder to upgrade across multiple major versions at once. --- .github/workflows/_lint.yml | 2 +- .github/workflows/_pydantic_compatibility.yml | 2 +- .github/workflows/_release.yml | 2 +- .github/workflows/_test.yml | 2 +- .github/workflows/codespell.yml | 2 +- .github/workflows/langchain_ci.yml | 2 +- .github/workflows/langchain_experimental_ci.yml | 4 ++-- .github/workflows/scheduled_test.yml | 2 +- .../create_repo/templates/poetry/.github/workflows/lint.yml | 2 +- .../templates/poetry/.github/workflows/release.yml | 2 +- .../create_repo/templates/poetry/.github/workflows/test.yml | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/_lint.yml b/.github/workflows/_lint.yml index e7cbfa2d2..e4ea3d220 100644 --- a/.github/workflows/_lint.yml +++ b/.github/workflows/_lint.yml @@ -34,7 +34,7 @@ jobs: - "3.8" - "3.11" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: # Fetch the last FETCH_DEPTH commits, so the mtime-changing script # can accurately set the mtimes of files modified in the last FETCH_DEPTH commits. diff --git a/.github/workflows/_pydantic_compatibility.yml b/.github/workflows/_pydantic_compatibility.yml index 3287a4d81..894883623 100644 --- a/.github/workflows/_pydantic_compatibility.yml +++ b/.github/workflows/_pydantic_compatibility.yml @@ -26,7 +26,7 @@ jobs: - "3.11" name: Pydantic v1/v2 compatibility - Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }} uses: "./.github/actions/poetry_setup" diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index 38c701052..4f95b09fe 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -30,7 +30,7 @@ jobs: run: working-directory: ${{ inputs.working-directory }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python + Poetry ${{ env.POETRY_VERSION }} uses: "./.github/actions/poetry_setup" diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index 61670014f..d296bb915 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -26,7 +26,7 @@ jobs: - "3.11" name: Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }} uses: "./.github/actions/poetry_setup" diff --git a/.github/workflows/codespell.yml b/.github/workflows/codespell.yml index 50a22e4cb..82474e928 100644 --- a/.github/workflows/codespell.yml +++ b/.github/workflows/codespell.yml @@ -17,7 +17,7 @@ jobs: steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Install Dependencies run: | diff --git a/.github/workflows/langchain_ci.yml b/.github/workflows/langchain_ci.yml index 046de2258..cd472f2b1 100644 --- a/.github/workflows/langchain_ci.yml +++ b/.github/workflows/langchain_ci.yml @@ -65,7 +65,7 @@ jobs: - "3.11" name: Python ${{ matrix.python-version }} extended tests steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }} uses: "./.github/actions/poetry_setup" diff --git a/.github/workflows/langchain_experimental_ci.yml b/.github/workflows/langchain_experimental_ci.yml index 8641a915e..49029872f 100644 --- a/.github/workflows/langchain_experimental_ci.yml +++ b/.github/workflows/langchain_experimental_ci.yml @@ -62,7 +62,7 @@ jobs: - "3.11" name: test with unpublished langchain - Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }} uses: "./.github/actions/poetry_setup" @@ -97,7 +97,7 @@ jobs: - "3.11" name: Python ${{ matrix.python-version }} extended tests steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} + Poetry ${{ env.POETRY_VERSION }} uses: "./.github/actions/poetry_setup" diff --git a/.github/workflows/scheduled_test.yml b/.github/workflows/scheduled_test.yml index 44de47155..116fd5032 100644 --- a/.github/workflows/scheduled_test.yml +++ b/.github/workflows/scheduled_test.yml @@ -24,7 +24,7 @@ jobs: - "3.11" name: Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: "./.github/actions/poetry_setup" diff --git a/libs/langchain/langchain/cli/create_repo/templates/poetry/.github/workflows/lint.yml b/libs/langchain/langchain/cli/create_repo/templates/poetry/.github/workflows/lint.yml index c3e4375fc..6c84beec3 100644 --- a/libs/langchain/langchain/cli/create_repo/templates/poetry/.github/workflows/lint.yml +++ b/libs/langchain/langchain/cli/create_repo/templates/poetry/.github/workflows/lint.yml @@ -19,7 +19,7 @@ jobs: - "3.10" - "3.11" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install poetry run: | pipx install poetry==$POETRY_VERSION diff --git a/libs/langchain/langchain/cli/create_repo/templates/poetry/.github/workflows/release.yml b/libs/langchain/langchain/cli/create_repo/templates/poetry/.github/workflows/release.yml index 85b387b27..d06bc0a0d 100644 --- a/libs/langchain/langchain/cli/create_repo/templates/poetry/.github/workflows/release.yml +++ b/libs/langchain/langchain/cli/create_repo/templates/poetry/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: && ${{ contains(github.event.pull_request.labels.*.name, 'release') }} runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Install poetry run: pipx install poetry==$POETRY_VERSION - name: Set up Python 3.10 diff --git a/libs/langchain/langchain/cli/create_repo/templates/poetry/.github/workflows/test.yml b/libs/langchain/langchain/cli/create_repo/templates/poetry/.github/workflows/test.yml index 5138aaa0f..9f2dc9668 100644 --- a/libs/langchain/langchain/cli/create_repo/templates/poetry/.github/workflows/test.yml +++ b/libs/langchain/langchain/cli/create_repo/templates/poetry/.github/workflows/test.yml @@ -21,7 +21,7 @@ jobs: - "3.11" name: Python ${{ matrix.python-version }} steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} uses: "./.github/actions/poetry_setup" with: