The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
Do not bust `poetry install` cache when manually installing pydantic v2. (#9407)
Predrag Gruevski0dd2c21089d8
diff --git a/.github/workflows/_test.yml b/.github/workflows/_test.ymlindex 2465aa1ace..ebb0791737 100644--- a/.github/workflows/_test.yml+++ b/.github/workflows/_test.yml@@ -46,7 +46,11 @@ jobs:elif [ "${{ matrix.test_type }}" == "core-pydantic-2" ]; thenecho "Running core-pydantic-v2 tests, installing dependencies with poetry..."poetry install- poetry add [email protected]++ # Install via `pip` instead of `poetry add` to avoid changing lockfile,+ # which would prevent caching from working: the cache would get saved+ # to a different key than where it gets loaded from.+ poetry run pip install 'pydantic>=2.1,<3'elseecho "Running extended tests, installing dependencies with poetry..."poetry install -E extended_testing@@ -59,10 +63,10 @@ jobs:EXPECTED_VERSION=1fiecho "Checking pydantic version... Expecting ${EXPECTED_VERSION}"-+# Determine the major part of pydantic versionVERSION=$(poetry run python -c "import pydantic; print(pydantic.__version__)" | cut -d. -f1)-+# Check that the major part of pydantic version is as expected, if not# raise an errorif [[ "$VERSION" -ne $EXPECTED_VERSION ]]; then