Skip to content

Add MinIO and Weaviate setup, URL processing functions #64

Add MinIO and Weaviate setup, URL processing functions

Add MinIO and Weaviate setup, URL processing functions #64

name: Docker-Compose Build & Log Test
on: [push]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Start services
run: docker-compose -f deploy/docker-compose.yaml up --build -d
- name: Dump Docker Compose Service Logs
run: docker-compose -f deploy/docker-compose.yaml logs
- name: Check for python-app readiness
run: python .github/scripts/health_check.py
- name: Run API tests and capture logs if fail
run: |
if ! docker-compose -f deploy/docker-compose.yaml exec -T python-app python -m pytest -v /app/tests/test_api.py; then
docker-compose -f deploy/docker-compose.yaml logs python-app > app_service_logs.txt
docker-compose -f deploy/docker-compose.yaml logs minio > minio_logs.txt
docker-compose -f deploy/docker-compose.yaml logs weaviate > weaviate_logs.txt
cat app_service_logs.txt
exit 1
fi
- name: Upload logs as artifacts
if: failure()
uses: actions/upload-artifact@v2
with:
name: service-logs
path: |
app_service_logs.txt
minio_logs.txt
weaviate_logs.txt