выполнение лабы на 5

This commit is contained in:
kaktuz20000
2026-10-21 09:44:11 +03:00
commit 176b9de2de
92 changed files with 12727 additions and 0 deletions
+34
View File
@@ -0,0 +1,34 @@
name: Application checks
on: [push, pull_request]
permissions:
contents: read
jobs:
compose-tests:
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- run: python -m pip install -r requirements-dev.txt
- name: Create local test credentials
run: |
cp .env.example .env
./scripts/bootstrap-secrets.sh
- name: Validate and start the application
run: |
make check validate PYTHON=python
docker compose --env-file .env config --quiet
docker compose --env-file .env up -d --build --scale api=2 --wait --wait-timeout 180
- name: Run API and concurrency tests
run: |
make test
make test-idempotency
- name: Verify persistence and failover
run: |
make test-persistence ACTION_SCRIPT=scripts/restart.sh
make test-failover ACTION_SCRIPT=scripts/stop-one.sh
- name: Stop test stack
if: always()
run: docker compose --env-file .env down -v