From 7a8d5586de11ae53676417342288b7dfccd367e1 Mon Sep 17 00:00:00 2001 From: Chester Curme Date: Mon, 3 Feb 2025 16:11:39 -0500 Subject: [PATCH] test extras --- libs/langchain/Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/libs/langchain/Makefile b/libs/langchain/Makefile index 086f7b6b994..464d18ddd54 100644 --- a/libs/langchain/Makefile +++ b/libs/langchain/Makefile @@ -1,4 +1,4 @@ -.PHONY: all clean docs_build docs_clean docs_linkcheck api_docs_build api_docs_clean api_docs_linkcheck format lint test tests test_watch integration_tests docker_tests help extended_tests +.PHONY: all clean docs_build docs_clean docs_linkcheck api_docs_build api_docs_clean api_docs_linkcheck format lint test_extras test tests test_watch integration_tests docker_tests help extended_tests # Default target executed when no arguments are given to make. all: help @@ -18,7 +18,14 @@ coverage: --cov-report term-missing:skip-covered \ $(TEST_FILE) -test tests: +test_extras: + uv pip uninstall langchain-anthropic + uv pip install . + ! uv run python -c "from langchain_anthropic import ChatAnthropic" + uv pip install '.[anthropic]' + uv run python -c "from langchain_anthropic import ChatAnthropic" + +test tests: test_extras uv run --group test pytest -n auto --disable-socket --allow-unix-socket $(TEST_FILE) extended_tests: