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

34 lines
990 B
YAML

name: Skeleton contracts
on: [push, pull_request]
permissions:
contents: read
jobs:
contracts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: '3.12'
- run: python -m pip install -r requirements-dev.txt
- run: make check validate PYTHON=python
application-smoke:
runs-on: ubuntu-24.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Build and start the lab
run: |
./scripts/bootstrap.sh
docker compose config --quiet
docker compose up -d --build
./scripts/wait_ready.sh 180
- name: Check the application with telemetry enabled
run: |
curl --fail --retry 15 --retry-delay 2 --retry-connrefused http://localhost:3000/api/health
make test
- if: failure()
run: docker compose ps --all
- if: always()
run: docker compose down