diff --git a/.github/workflows/scheduled_test.yml b/.github/workflows/scheduled_test.yml index a5bae539102a1..9dea04910c553 100644 --- a/.github/workflows/scheduled_test.yml +++ b/.github/workflows/scheduled_test.yml @@ -10,9 +10,6 @@ env: jobs: build: - defaults: - run: - working-directory: libs/langchain runs-on: ubuntu-latest environment: Scheduled testing strategy: @@ -22,7 +19,10 @@ jobs: - "3.9" - "3.10" - "3.11" - name: Python ${{ matrix.python-version }} + working-directory: + - "libs/partners/openai" + - "libs/partners/anthropic" + name: Python ${{ matrix.python-version }} - ${{ matrix.working-directory }} steps: - uses: actions/checkout@v4 @@ -31,7 +31,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' @@ -48,18 +48,14 @@ jobs: aws-region: ${{ vars.AWS_REGION }} - name: Install dependencies - working-directory: libs/langchain + working-directory: ${{ matrix.working-directory }} shell: bash run: | 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: bash env: OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }} @@ -72,9 +68,10 @@ jobs: AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT_NAME: ${{ secrets.AZURE_OPENAI_EMBEDDINGS_DEPLOYMENT_NAME }} FIREWORKS_API_KEY: ${{ secrets.FIREWORKS_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: bash run: | set -eu diff --git a/libs/langchain/Makefile b/libs/langchain/Makefile index 119e15422f8dd..6dc275d6f4772 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:test