Skip to content

Commit

Permalink
fix: add docker-compose tests (#1051)
Browse files Browse the repository at this point in the history
  • Loading branch information
langchain-infra authored Sep 27, 2024
2 parents 43fffdd + 37f8ceb commit bcfe123
Showing 1 changed file with 45 additions and 0 deletions.
45 changes: 45 additions & 0 deletions .github/workflows/test_docker_compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: "CI: Test Docker Compose"

on:
push:
branches: [ main ]
paths:
pull_request:
branches: [ main ]
paths:
- ".github/workflows/test_docker_compose.yml"
- "python/langsmith/cli/docker-compose.yaml"


concurrency:
group: "test-docker-compose"
cancel-in-progress: true

jobs:

docker-compose:
timeout-minutes: 10
runs-on: ubuntu-latest

env:
LANGSMITH_LICENSE_KEY: ${{ secrets.LANGSMITH_LICENSE_KEY }}
API_KEY_SALT: test

steps:
- name: Checkout
uses: actions/checkout@v1

- uses: KengoTODA/actions-setup-docker-compose@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Start containers
working-directory: python/langsmith/cli
run: docker compose up -d

- name: sleep 30 seconds
run: sleep 30

- name: Check backend health
run: curl localhost:1980/api/info

0 comments on commit bcfe123

Please sign in to comment.