From 183b7e3262497a6fd7e11812ab80ec14d77c499e Mon Sep 17 00:00:00 2001 From: Sydney Runkle Date: Wed, 2 Jul 2025 13:01:17 -0400 Subject: [PATCH] test against min direct deps --- .github/workflows/_test.yml | 10 ++++++ .github/workflows/_test_langgraph.yml | 8 +++++ libs/langgraph/langgraph/func/__init__.py | 1 + libs/langgraph/pyproject.toml | 40 ++++++++++------------- 4 files changed, 37 insertions(+), 22 deletions(-) diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.yml index c572e96cb..598abd3f9 100644 --- a/.github/workflows/_test.yml +++ b/.github/workflows/_test.yml @@ -46,6 +46,16 @@ jobs: working-directory: ${{ inputs.working-directory }} run: make test + - name: Install min version of deps + shell: bash + working-directory: ${{ inputs.working-directory }} + run: uv sync --all-extras --resolution lowest-direct --no-sources --force-reinstall + + - name: Run tests with min version of deps + shell: bash + run: make test + working-directory: ${{ inputs.working-directory }} + - name: Ensure the tests did not create any additional files shell: bash working-directory: ${{ inputs.working-directory }} diff --git a/.github/workflows/_test_langgraph.yml b/.github/workflows/_test_langgraph.yml index 0a8b515ea..087f940ab 100644 --- a/.github/workflows/_test_langgraph.yml +++ b/.github/workflows/_test_langgraph.yml @@ -42,6 +42,14 @@ jobs: shell: bash run: make test_parallel + - name: Install min version of deps + shell: bash + run: uv sync --all-extras --resolution lowest-direct --no-sources --force-reinstall + + - name: Run tests with min version of deps + shell: bash + run: make test_parallel + - name: Ensure the tests did not create any additional files shell: bash run: | diff --git a/libs/langgraph/langgraph/func/__init__.py b/libs/langgraph/langgraph/func/__init__.py index ba0b3c4cb..77842e980 100644 --- a/libs/langgraph/langgraph/func/__init__.py +++ b/libs/langgraph/langgraph/func/__init__.py @@ -17,6 +17,7 @@ from typing import ( overload, ) +# meaningless change to trigger tests from typing_extensions import Unpack from langgraph._typing import UNSET, DeprecatedKwargs diff --git a/libs/langgraph/pyproject.toml b/libs/langgraph/pyproject.toml index 1d5518052..6afad9fc1 100644 --- a/libs/langgraph/pyproject.toml +++ b/libs/langgraph/pyproject.toml @@ -25,30 +25,26 @@ Repository = "https://www.github.com/langchain-ai/langgraph" [dependency-groups] dev = [ - "pytest", - "pytest-cov", - "pytest-dotenv", - "pytest-mock", - "syrupy", - "httpx", - "pytest-watcher", - "mypy", - "ruff", - "jupyter", - "pytest-xdist[psutil]", - "pytest-repeat", - "langgraph-prebuilt", - "langgraph-checkpoint", + "pytest>=8.3.2", + "pytest-cov>=4.0.0", + "pytest-dotenv>=0.5.2", + "pytest-mock>=3.10.0", + "syrupy>=4.0.2", + "httpx>=0.26.0", + 'pytest-watcher>=0.4.1', + "mypy>=1.6.0", + "ruff>=0.6.2", + "jupyter>=1.0.0", + "pytest-xdist[psutil]>=3.6.1", + "pytest-repeat>=0.9.3", "langgraph-checkpoint-sqlite", "langgraph-checkpoint-postgres", - "langgraph-sdk", - "psycopg[binary]", - "uvloop==0.21.0beta1", - "pyperf", - "py-spy", - "types-requests", - "pycryptodome", - "langgraph-cli[inmem]", + 'psycopg[binary]>=3.0.0; python_version >= "3.10"', + "pyperf>=2.7.0", + "py-spy>=0.3.14", + "types-requests>=2.32.0.20240914", + "pycryptodome>=3.21.0", + "langgraph-cli[inmem]>=0.2.8", ] [tool.uv]