forked from mtusi2026/mtusi2026lab3
Выполнена лабораторная работа 3
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user