Выполнена лабораторная работа 3

This commit is contained in:
2026-11-12 20:51:39 +03:00
parent 0ab3a341aa
commit 21ad522707
142 changed files with 41889 additions and 50 deletions
+22
View File
@@ -0,0 +1,22 @@
name: Application acceptance
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'
- run: python scripts/bootstrap.py
- run: docker compose up -d --build --wait --wait-timeout 180
- run: timeout 60 bash -c 'until curl -fsS http://localhost:8080/health/ready; do sleep 1; done'
- run: make check test PYTHON=python
- run: python student-tests/acceptance.py
- run: chmod +x scripts/restart.sh scripts/stop-one.sh
- run: make test-persistence PYTHON=python ACTION_SCRIPT=scripts/restart.sh
- run: make test-failover PYTHON=python ACTION_SCRIPT=scripts/stop-one.sh
- if: always()
run: docker compose down