28 lines
867 B
YAML
28 lines
867 B
YAML
name: Lab5 application
|
|
on: [push, pull_request]
|
|
permissions:
|
|
contents: read
|
|
jobs:
|
|
integration:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
- run: sh scripts/setup.sh
|
|
- run: docker compose --env-file .env up -d --build --wait --wait-timeout 180
|
|
- run: make test PYTHON=python BASE_URL=http://localhost:8085
|
|
- run: python scripts/verify-lab5.py --base-url http://localhost:8085
|
|
- name: Diagnostics
|
|
if: failure()
|
|
run: docker compose logs --tail=60 api1 api2 worker dispatcher broker
|
|
- uses: actions/upload-artifact@v4
|
|
if: always()
|
|
with:
|
|
name: pipeline-evidence
|
|
path: evidence/pipeline.*
|
|
- if: always()
|
|
run: docker compose down
|