Добавить тесты вложений и хранилища, проверку согласованности и исследование сверщика
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
name: Application
|
||||
on: [push, pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
stack:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- run: cp .env.example .env
|
||||
- run: python scripts/init_secrets.py
|
||||
- run: docker compose config --quiet
|
||||
- run: docker compose up -d --build --wait
|
||||
- run: make test BASE_URL=http://127.0.0.1:8080 PYTHON=python
|
||||
- run: make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://127.0.0.1:8080 PYTHON=python
|
||||
- run: make student-test BASE_URL=http://127.0.0.1:8080 PYTHON=python
|
||||
- run: python student-tests/expiry_check.py --ttl 2
|
||||
- run: python student-tests/failure_check.py
|
||||
- run: python student-tests/consistency_check.py
|
||||
- run: make test-failover ACTION_SCRIPT=scripts/stop-one.sh BASE_URL=http://127.0.0.1:8080 PYTHON=python
|
||||
- run: docker compose start api && sleep 15
|
||||
- run: python student-tests/failover_series.py
|
||||
- run: python student-tests/rolling_update_check.py --no-build
|
||||
- if: failure()
|
||||
run: docker compose ps -a && docker compose logs --no-color
|
||||
- if: always()
|
||||
run: docker compose down -v
|
||||
Reference in New Issue
Block a user