The agent engineering platform.
Python agentsaiai-agentsanthropicchatgptdeepagentsenterpriseframeworkgeminigenerative-ailangchainlanggraphllmmultiagentopen-sourceopenaipydanticpythonragtypescript
update scheduled tests (#20526)
ccurme22da9f5f3f9f
diff --git a/.github/workflows/_integration_test.yml b/.github/workflows/_integration_test.ymlindex 3d4019bd12..58f27c9744 100644--- a/.github/workflows/_integration_test.yml+++ b/.github/workflows/_integration_test.yml@@ -58,6 +58,7 @@ jobs:MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}TOGETHER_API_KEY: ${{ secrets.TOGETHER_API_KEY }}OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}+ GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}NVIDIA_API_KEY: ${{ secrets.NVIDIA_API_KEY }}GOOGLE_SEARCH_API_KEY: ${{ secrets.GOOGLE_SEARCH_API_KEY }}GOOGLE_CSE_ID: ${{ secrets.GOOGLE_CSE_ID }}diff --git a/.github/workflows/scheduled_test.yml b/.github/workflows/scheduled_test.ymlindex a5bae53910..1b6522385d 100644--- a/.github/workflows/scheduled_test.yml+++ b/.github/workflows/scheduled_test.yml@@ -10,19 +10,21 @@ env:jobs:build:- defaults:- run:- working-directory: libs/langchainruns-on: ubuntu-latest- environment: Scheduled testingstrategy:matrix:python-version:- "3.8"- - "3.9"- - "3.10"- "3.11"- name: Python ${{ matrix.python-version }}+ working-directory:+ - "libs/partners/openai"+ - "libs/partners/anthropic"+ # - "libs/partners/ai21" # standard-tests broken+ - "libs/partners/fireworks"+ # - "libs/partners/groq" # rate-limited+ - "libs/partners/mistralai"+ # - "libs/partners/together" # rate-limited+ name: Python ${{ matrix.python-version }} - ${{ matrix.working-directory }}steps:- uses: actions/checkout@v4@@ -31,7 +33,7 @@ jobs:with:python-version: ${{ matrix.python-version }}poetry-version: ${{ env.POETRY_VERSION }}- working-directory: libs/langchain+ working-directory: ${{ matrix.working-directory }}cache-key: scheduled- name: 'Authenticate to Google Cloud'@@ -40,26 +42,15 @@ jobs:with:credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}'- - name: Configure AWS Credentials- uses: aws-actions/configure-aws-credentials@v4- with:- aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}- aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}- aws-region: ${{ vars.AWS_REGION }}-- name: Install dependencies- working-directory: libs/langchain+ working-directory: ${{ matrix.working-directory }}shell: bashrun: |echo "Running scheduled tests, installing dependencies with poetry..."poetry install --with=test_integration,test- - name: Install deps outside pyproject- if: ${{ startsWith(inputs.working-directory, 'libs/community/') }}- shell: bash- run: poetry run pip install "boto3<2" "google-cloud-aiplatform<2"-- - name: Run tests+ - name: Run integration tests+ working-directory: ${{ matrix.working-directory }}shell: bashenv:OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}@@ -70,11 +61,16 @@ jobs:AZURE_OPENAI_CHAT_DEPLOYMENT_NAME: ${{ secrets.AZURE_OPENAI_CHAT_DEPLOYMENT_NAME }}AZURE_OPENAI_LLM_DEPLOYMENT_NAME: ${{ secrets.AZURE_OPENAI_LLM_DEPLOYMENT_NAME }}AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT_NAME: ${{ secrets.AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT_NAME }}+ AI21_API_KEY: ${{ secrets.AI21_API_KEY }}FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_API_KEY }}+ GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}+ MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}+ TOGETHER_API_KEY: ${{ secrets.TOGETHER_API_KEY }}run: |- make scheduled_tests+ make integration_test- name: Ensure the tests did not create any additional files+ working-directory: ${{ matrix.working-directory }}shell: bashrun: |set -eudiff --git a/libs/langchain/Makefile b/libs/langchain/Makefileindex 119e15422f..6dc275d6f4 100644--- a/libs/langchain/Makefile+++ b/libs/langchain/Makefile@@ -33,9 +33,6 @@ test_watch_extended:integration_tests:poetry run pytest tests/integration_tests-scheduled_tests:- poetry run pytest -m scheduled tests/integration_tests-docker_tests:docker build -t my-langchain-image:test .docker run --rm my-langchain-image:testdiff --git a/libs/partners/openai/tests/integration_tests/embeddings/test_azure.py b/libs/partners/openai/tests/integration_tests/embeddings/test_azure.pyindex 6f697c9a3b..ad01bc1a61 100644--- a/libs/partners/openai/tests/integration_tests/embeddings/test_azure.py+++ b/libs/partners/openai/tests/integration_tests/embeddings/test_azure.py@@ -117,7 +117,7 @@ def test_azure_openai_embedding_with_empty_string() -> None:.data[0].embedding)- assert np.allclose(output[0], expected_output)+ assert np.allclose(output[0], expected_output, atol=0.0001)assert len(output[1]) == 1536diff --git a/libs/partners/together/Makefile b/libs/partners/together/Makefileindex f231cd432f..8a8fb9add2 100644--- a/libs/partners/together/Makefile+++ b/libs/partners/together/Makefile@@ -6,10 +6,9 @@ all: help# Define a variable for the test file path.TEST_FILE ?= tests/unit_tests/-test:- poetry run pytest $(TEST_FILE)+integration_test integration_tests: TEST_FILE=tests/integration_tests/-tests:+test tests integration_test integration_tests:poetry run pytest $(TEST_FILE)