Files
mtusi2026lab6/.github/workflows/application.yml
T

26 lines
828 B
YAML

name: Application smoke
on: [push, pull_request]
permissions:
contents: read
jobs:
application:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Prepare isolated lab credentials
run: |
sh scripts/init-secrets.sh
cp .env.example .env
docker compose --env-file .env config --quiet
- name: Build and wait for application
run: docker compose --env-file .env up -d --build --wait --wait-timeout 120
- name: Check contract and public scenario
run: make check test PYTHON=python BASE_URL=http://127.0.0.1:8080
- name: Stop disposable CI stack
if: always()
run: docker compose --env-file .env down