forked from mtusi2026/mtusi2026lab2
24 lines
893 B
YAML
24 lines
893 B
YAML
name: Lab 2 application
|
|
on: [push, pull_request]
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
integration:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
- name: Prepare local configuration
|
|
run: |
|
|
python -c "from pathlib import Path; import secrets; Path('.env').write_text(Path('.env.example').read_text().replace('replace-with-local-password', secrets.token_hex(24)))"
|
|
chmod +x scripts/restart.sh
|
|
- run: docker compose up -d --build --wait --wait-timeout 120
|
|
- run: make check test test-grade4 PYTHON=python
|
|
- run: make test-persistence PYTHON=python ACTION_SCRIPT=scripts/restart.sh
|
|
- run: make test-failures explain PYTHON=python
|
|
- run: make test-track1 PYTHON=python
|
|
- if: always()
|
|
run: docker compose down
|