From c0aa6ab61227657766b5e71a2a8d88a360115d2c Mon Sep 17 00:00:00 2001 From: Sydney Runkle Date: Wed, 2 Jul 2025 14:08:13 -0400 Subject: [PATCH] min deps ci and pydantic version fix --- .github/workflows/_test.yml | 10 ++++++++++ .github/workflows/_test_langgraph.yml | 10 ++++++++++ libs/langgraph/pyproject.toml | 3 ++- 3 files changed, 22 insertions(+), 1 deletion(-) diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index c572e96cb..6071ccb56 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -58,3 +58,13 @@ jobs: # grep will exit non-zero if the target message isn't found, # and `set -e` above will cause the step to fail. echo "$STATUS" | grep 'nothing to commit, working tree clean' + + - name: Install min version of deps + shell: bash + working-directory: ${{ inputs.working-directory }} + run: uv sync --no-default-groups --resolution lowest-direct --no-sources --force-reinstall + + - name: Run tests with min version of deps + shell: bash + working-directory: ${{ inputs.working-directory }} + run: make test diff --git a/.github/workflows/_test_langgraph.yml b/.github/workflows/_test_langgraph.yml index 0a8b515ea..f8e6d8db4 100644 --- a/.github/workflows/_test_langgraph.yml +++ b/.github/workflows/_test_langgraph.yml @@ -53,3 +53,13 @@ jobs: # grep will exit non-zero if the target message isn't found, # and `set -e` above will cause the step to fail. echo "$STATUS" | grep 'nothing to commit, working tree clean' + + - name: Install min version of deps + shell: bash + working-directory: ${{ inputs.working-directory }} + run: uv sync --no-default-groups --resolution lowest-direct --no-sources --force-reinstall + + - name: Run tests with min version of deps + shell: bash + working-directory: ${{ inputs.working-directory }} + run: make test diff --git a/libs/langgraph/pyproject.toml b/libs/langgraph/pyproject.toml index 1d5518052..6697d13e1 100644 --- a/libs/langgraph/pyproject.toml +++ b/libs/langgraph/pyproject.toml @@ -17,7 +17,8 @@ dependencies = [ "langgraph-sdk>=0.1.42,<0.2.0", "langgraph-prebuilt>=0.5.0,<0.6.0", "xxhash>=3.5.0", - "pydantic>=2.7.4", + "pydantic>=2.7.4; python_version < '3.13'", + "pydantic>=2.0.0; python_version >= '3.13'", ] [project.urls]