Skip to content

Commit

Permalink
update scheduled tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ccurme committed Apr 16, 2024
1 parent 77eba10 commit e94a2cc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 16 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/scheduled_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ env:

jobs:
build:
defaults:
run:
working-directory: libs/langchain
runs-on: ubuntu-latest
environment: Scheduled testing
strategy:
Expand All @@ -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

Expand All @@ -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'
Expand All @@ -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 }}
Expand All @@ -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
Expand Down
3 changes: 0 additions & 3 deletions libs/langchain/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e94a2cc

Please sign in to comment.