From 79689196ac8b4a4cc56c2dbe4141de771197e354 Mon Sep 17 00:00:00 2001 From: Bagatur Date: Fri, 22 Sep 2023 12:03:10 -0700 Subject: [PATCH] add auth --- .github/workflows/scheduled_test.yml | 6 ++++++ .../tests/integration_tests/chat_models/test_vertexai.py | 1 + 2 files changed, 7 insertions(+) diff --git a/.github/workflows/scheduled_test.yml b/.github/workflows/scheduled_test.yml index 7ce59d5b6956a..b570729660390 100644 --- a/.github/workflows/scheduled_test.yml +++ b/.github/workflows/scheduled_test.yml @@ -34,6 +34,12 @@ jobs: working-directory: libs/langchain cache-key: scheduled + - name: 'Authenticate to Google Cloud' + id: 'auth' + uses: 'google-github-actions/auth@v1' + with: + credentials_json: '${{ secrets.GOOGLE_CREDENTIALS }}' + - name: Install dependencies working-directory: libs/langchain shell: bash diff --git a/libs/langchain/tests/integration_tests/chat_models/test_vertexai.py b/libs/langchain/tests/integration_tests/chat_models/test_vertexai.py index cc5163e525194..638cf1131c367 100644 --- a/libs/langchain/tests/integration_tests/chat_models/test_vertexai.py +++ b/libs/langchain/tests/integration_tests/chat_models/test_vertexai.py @@ -18,6 +18,7 @@ from langchain.schema.messages import AIMessage, HumanMessage, SystemMessage +@pytest.mark.scheduled @pytest.mark.parametrize("model_name", [None, "codechat-bison", "chat-bison"]) def test_vertexai_single_call(model_name: str) -> None: if model_name: