* fix: abstract chunking into a separate class * fix: yield merged text from text chunker * fix: split python version tests * fix: change postgres live check * fix: remove unnecessary code * fix: update checkout action * fix: update setup-python action * fix: add PG_USER env variable * fix: make sure relationship_name is used everywhere * fix: remove duplicate import
38 lines
769 B
YAML
38 lines
769 B
YAML
name: test | docker compose
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
docker-compose-test:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@master
|
|
|
|
- name: Set up Docker Buildx
|
|
uses: docker/setup-buildx-action@v3
|
|
|
|
- name: Build Docker images
|
|
run: |
|
|
docker compose -f docker-compose.yml build
|
|
|
|
- name: Run Docker Compose
|
|
run: |
|
|
docker compose -f docker-compose.yml up -d
|
|
|
|
- name: Wait for services to be ready
|
|
run: |
|
|
# Add any necessary health checks or wait commands
|
|
sleep 30
|
|
|
|
- name: Shut down Docker Compose
|
|
if: always()
|
|
run: |
|
|
docker compose -f docker-compose.yml down
|