name: Application on: [push, pull_request] permissions: contents: read jobs: application: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: "3.12" - name: Local env from the published example run: cp .env.example .env - name: Start the stand run: docker compose --env-file .env up -d --build - name: Wait until ready run: | python3 - <<'PY' import time import urllib.request for _ in range(60): try: with urllib.request.urlopen("http://127.0.0.1:8080/health/ready", timeout=2) as response: if response.status == 200: raise SystemExit(0) except SystemExit: raise except Exception: time.sleep(1) raise SystemExit("server did not become ready") PY - name: Public smoke and student tests run: make test student-test PYTHON=python3 - name: Stop if: always() run: docker compose --env-file .env down