Lab2- оценка 5
This commit is contained in:
@@ -0,0 +1,23 @@
|
||||
name: Application (lab2)
|
||||
on: [push, pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
app:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.12'
|
||||
- run: python scripts/init_secrets.py
|
||||
- run: docker compose config --quiet
|
||||
- run: docker compose up -d --build --wait api
|
||||
- run: make test PYTHON=python
|
||||
- run: make test-persistence PYTHON=python ACTION_SCRIPT=scripts/restart.sh
|
||||
- run: python student-tests/run_tests.py
|
||||
- if: failure()
|
||||
run: docker compose logs --no-color --tail 200
|
||||
- if: always()
|
||||
run: docker compose --profile ttl down -v
|
||||
Reference in New Issue
Block a user