mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 02:06:44 +00:00
feat: port various nit changes from wip-v0.4 (#32506)
Lots of work that wasn't directly related to core improvements/messages/testing functionality
This commit is contained in:
@@ -8,10 +8,14 @@ UV_FROZEN = true
|
||||
|
||||
# Define a variable for the test file path.
|
||||
TEST_FILE ?= tests/unit_tests/
|
||||
integration_test: TEST_FILE = tests/integration_tests/
|
||||
integration_test integration_tests: TEST_FILE = tests/integration_tests/
|
||||
# note: leaving out integration_tests (with s) command to skip release testing for now
|
||||
# TODO(erick) configure ollama server to run in CI, in separate repo
|
||||
|
||||
# Define variables for test model configuration
|
||||
OLLAMA_TEST_MODEL ?= llama3.1
|
||||
OLLAMA_REASONING_TEST_MODEL ?= deepseek-r1:1.5b
|
||||
|
||||
|
||||
# unit tests are run with the --disable-socket flag to prevent network calls
|
||||
test tests:
|
||||
@@ -22,10 +26,9 @@ test_watch:
|
||||
|
||||
|
||||
# integration tests are run without the --disable-socket flag to allow network calls
|
||||
integration_test:
|
||||
uv run --group test --group test_integration pytest $(TEST_FILE)
|
||||
integration_test integration_tests:
|
||||
OLLAMA_TEST_MODEL=$(OLLAMA_TEST_MODEL) OLLAMA_REASONING_TEST_MODEL=$(OLLAMA_REASONING_TEST_MODEL) uv run --group test --group test_integration pytest $(TEST_FILE)
|
||||
# note: leaving out integration_tests (with s) command to skip release testing for now
|
||||
# TODO(erick) configure ollama server to run in CI, in separate repo
|
||||
|
||||
######################
|
||||
# LINTING AND FORMATTING
|
||||
@@ -70,3 +73,6 @@ help:
|
||||
@echo 'test - run unit tests'
|
||||
@echo 'tests - run unit tests'
|
||||
@echo 'test TEST_FILE=<test_file> - run all tests in file'
|
||||
@echo 'integration_test - run integration tests'
|
||||
@echo 'integration_test OLLAMA_TEST_MODEL=<model> - run integration tests with specific model'
|
||||
@echo ' Example: make integration_test OLLAMA_TEST_MODEL=llama3.1'
|
||||
|
||||
Reference in New Issue
Block a user