Завершить уровень 4: проверить ошибки, ограничить память и автоматизировать сверку S3
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
name: Application lab4
|
||||
on: [push, pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
application:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- run: python scripts/bootstrap.py
|
||||
- run: docker compose build api s3
|
||||
- run: docker compose up -d
|
||||
- run: python scripts/wait_ready.py --base-url http://localhost:8084 --replicas 2
|
||||
- run: make check test PYTHON=python BASE_URL=http://localhost:8084
|
||||
- run: docker compose run --rm --no-deps -T -v "$PWD:/suite:ro" -w /suite api python student-tests/test_attachments.py
|
||||
- run: docker compose run --rm --no-deps -T -v "$PWD:/suite:ro" -w /suite api python student-tests/test_reconcile.py
|
||||
- run: chmod +x scripts/restart.sh scripts/stop-one.sh
|
||||
- run: make test-persistence PYTHON=python BASE_URL=http://localhost:8084 ACTION_SCRIPT=scripts/restart.sh
|
||||
- if: always()
|
||||
run: docker compose down
|
||||
Reference in New Issue
Block a user