name: Lab4 application on: [push, pull_request] permissions: contents: read jobs: integration: runs-on: ubuntu-latest timeout-minutes: 15 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v4 with: python-version: '3.12' - name: Prepare test credentials run: sh scripts/setup.sh - name: Build and start the stack run: docker compose --env-file .env up -d --build --wait --wait-timeout 180 - name: Check API readiness run: curl --fail --show-error http://127.0.0.1:8080/health/ready - name: Run smoke test run: make test PYTHON=python BASE_URL=http://127.0.0.1:8080 - name: Print diagnostics on failure if: failure() run: | docker compose --env-file .env ps -a docker compose --env-file .env logs --tail=80 - name: Stop the CI stack if: always() run: docker compose --env-file .env down