forked from mtusi2026/mtusi2026lab2
ЛР 2: PostgreSQL и постоянные сессии — Гавриленко БПИ2303, на 3
This commit is contained in:
@@ -13,4 +13,15 @@ jobs:
|
||||
- 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
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: scripts/setup.sh
|
||||
- run: docker compose up -d --build --wait
|
||||
- run: make test BASE_URL=http://localhost:8082
|
||||
- run: python3 student-tests/check.py --base-url http://localhost:8082
|
||||
- run: docker compose exec -T api python - < student-tests/db_check.py
|
||||
- run: make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://localhost:8082
|
||||
- if: always()
|
||||
run: docker compose down
|
||||
|
||||
Reference in New Issue
Block a user