diff --git a/.github/workflows/_release.yml b/.github/workflows/_release.yml index 089de755..5b76c5a0 100644 --- a/.github/workflows/_release.yml +++ b/.github/workflows/_release.yml @@ -165,6 +165,8 @@ jobs: - name: Run integration tests env: GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }} + GOOGLE_SEARCH_API_KEY: ${{ secrets.GOOGLE_SEARCH_API_KEY }} + GOOGLE_CSE_ID: ${{ secrets.GOOGLE_CSE_ID }} run: make integration_tests working-directory: ${{ inputs.working-directory }} diff --git a/libs/genai/Makefile b/libs/genai/Makefile index f11f5204..8d3d14ef 100644 --- a/libs/genai/Makefile +++ b/libs/genai/Makefile @@ -6,18 +6,14 @@ 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) check_imports: $(shell find langchain_google_genai -name '*.py') poetry run python ./scripts/check_imports.py $^ -integration_tests: - poetry run pytest tests/integration_tests - ###################### # LINTING AND FORMATTING ###################### diff --git a/libs/vertexai/Makefile b/libs/vertexai/Makefile index 70fd5125..9ee09b32 100644 --- a/libs/vertexai/Makefile +++ b/libs/vertexai/Makefile @@ -6,12 +6,9 @@ all: help # Define a variable for the test file path. TEST_FILE ?= tests/unit_tests/ -integration_tests: TEST_FILE = tests/integration_tests/ +integration_test integration_tests: TEST_FILE = tests/integration_tests/ -test integration_tests: - poetry run pytest $(TEST_FILE) - -tests: +test tests integration_test integration_tests: poetry run pytest $(TEST_FILE)