mirror of
https://github.com/hwchase17/langchain.git
synced 2025-07-08 22:15:08 +00:00
Merge branch 'master' into bagatur/locals_in_config
This commit is contained in:
commit
89bec58cbb
10
.github/workflows/_test.yml
vendored
10
.github/workflows/_test.yml
vendored
@ -46,7 +46,11 @@ jobs:
|
|||||||
elif [ "${{ matrix.test_type }}" == "core-pydantic-2" ]; then
|
elif [ "${{ matrix.test_type }}" == "core-pydantic-2" ]; then
|
||||||
echo "Running core-pydantic-v2 tests, installing dependencies with poetry..."
|
echo "Running core-pydantic-v2 tests, installing dependencies with poetry..."
|
||||||
poetry install
|
poetry install
|
||||||
poetry add pydantic@2.1
|
|
||||||
|
# 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'
|
||||||
else
|
else
|
||||||
echo "Running extended tests, installing dependencies with poetry..."
|
echo "Running extended tests, installing dependencies with poetry..."
|
||||||
poetry install -E extended_testing
|
poetry install -E extended_testing
|
||||||
@ -59,10 +63,10 @@ jobs:
|
|||||||
EXPECTED_VERSION=1
|
EXPECTED_VERSION=1
|
||||||
fi
|
fi
|
||||||
echo "Checking pydantic version... Expecting ${EXPECTED_VERSION}"
|
echo "Checking pydantic version... Expecting ${EXPECTED_VERSION}"
|
||||||
|
|
||||||
# Determine the major part of pydantic version
|
# Determine the major part of pydantic version
|
||||||
VERSION=$(poetry run python -c "import pydantic; print(pydantic.__version__)" | cut -d. -f1)
|
VERSION=$(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
|
# Check that the major part of pydantic version is as expected, if not
|
||||||
# raise an error
|
# raise an error
|
||||||
if [[ "$VERSION" -ne $EXPECTED_VERSION ]]; then
|
if [[ "$VERSION" -ne $EXPECTED_VERSION ]]; then
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 232 KiB After Width: | Height: | Size: 288 KiB |
Loading…
Reference in New Issue
Block a user