Files
mtusi2026lab2/.github/workflows/app.yml
T

27 lines
952 B
YAML

name: Application
on: [push, pull_request]
permissions:
contents: read
jobs:
stack:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: cp .env.example .env
- run: python scripts/init_secrets.py
- run: docker compose config --quiet
- run: docker compose up -d --build --wait
- run: make test BASE_URL=http://127.0.0.1:8080 PYTHON=python
- run: make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://127.0.0.1:8080 PYTHON=python
- run: make student-test BASE_URL=http://127.0.0.1:8080 PYTHON=python
- run: python student-tests/expiry_check.py --ttl 2
- run: python student-tests/failure_check.py
- if: failure()
run: docker compose ps -a && docker compose logs --no-color
- if: always()
run: docker compose down -v