Add MinIO and Weaviate setup, URL processing functions #64
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |