[+] Completed lab 3

This commit is contained in:
Антон Архипов
2026-11-16 16:15:08 +03:00
parent 0ab3a341aa
commit 98dd709eda
52 changed files with 4713 additions and 49 deletions
+22 -2
View File
@@ -12,5 +12,25 @@ jobs:
python-version: '3.12'
- run: python -m pip install -r requirements-dev.txt
- run: make check validate PYTHON=python
# This job validates the skeleton, not a student solution.
# Add build, readiness and make test in a separate application job.
application:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Build and start the stand
run: |
sh scripts/init-env.sh
docker compose config --quiet
docker compose build migrate
docker compose up -d --no-build --wait --wait-timeout 90
- name: Check public API and persistence
run: |
make test
make test-persistence ACTION_SCRIPT=scripts/restart.sh
- name: Check API replica failover
run: make test-failover ACTION_SCRIPT=scripts/stop-one.sh
- name: Show services and remove test data
if: always()
run: |
docker compose ps --all || true
docker compose down -v