forked from mtusi2026/mtusi2026lab2
28 lines
904 B
YAML
28 lines
904 B
YAML
name: 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@v5
|
|
with:
|
|
python-version: '3.12'
|
|
- run: python scripts/bootstrap.py
|
|
- run: docker compose --env-file .env up -d --build
|
|
- run: python scripts/wait_ready.py
|
|
- run: make check test PYTHON=python
|
|
- run: python student-tests/regression.py
|
|
- run: chmod +x scripts/restart.sh && make test-persistence PYTHON=python ACTION_SCRIPT=scripts/restart.sh
|
|
- run: make test-extra research PYTHON=python
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: sanitized-evidence
|
|
path: evidence/*.json
|
|
- if: always()
|
|
run: docker compose --env-file .env --profile research down
|