Skip to content

Commit c6a8663

Browse files
authored
infra: run old standard-tests on core releases (#30852)
On core releases, we check out the latest published package for langchain-openai and langchain-anthropic and run their tests against the candidate version of langchain-core. Because these packages have a local install of langchain-tests, we also need to check out the previous version of langchain-tests.
1 parent 1f5e207 commit c6a8663

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/_release.yml

+5-2
Original file line numberDiff line numberDiff line change
@@ -395,8 +395,11 @@ jobs:
395395
396396
# Checkout the latest package files
397397
rm -rf $GITHUB_WORKSPACE/libs/partners/${{ matrix.partner }}/*
398-
cd $GITHUB_WORKSPACE/libs/partners/${{ matrix.partner }}
399-
git checkout "$LATEST_PACKAGE_TAG" -- .
398+
rm -rf $GITHUB_WORKSPACE/libs/standard-tests/*
399+
cd $GITHUB_WORKSPACE/libs/
400+
git checkout "$LATEST_PACKAGE_TAG" -- standard-tests/
401+
git checkout "$LATEST_PACKAGE_TAG" -- partners/${{ matrix.partner }}/
402+
cd partners/${{ matrix.partner }}
400403
401404
# Print as a sanity check
402405
echo "Version number from pyproject.toml: "

0 commit comments

Comments
 (0)