forked from mtusi2026/mtusi2026lab2
ЛР 2 — БПИ2303 — Щербаков — на 3
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
name: Application
|
||||
on: [push, pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
application:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- run: python scripts/bootstrap.py
|
||||
- run: docker compose --env-file .env up -d --build --wait
|
||||
- run: make check test PYTHON=python BASE_URL=http://localhost:18082
|
||||
- run: python -m unittest discover -s student-tests -v
|
||||
env:
|
||||
BASE_URL: http://localhost:18082
|
||||
NO_PROXY: localhost,127.0.0.1
|
||||
- run: chmod +x scripts/restart.sh && make test-persistence PYTHON=python BASE_URL=http://localhost:18082 ACTION_SCRIPT=scripts/restart.sh
|
||||
- if: always()
|
||||
run: docker compose down
|
||||
Reference in New Issue
Block a user