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: runs-on: ubuntu-latest timeout-minutes: 15 steps: - uses: actions/checkout@v4 - uses: actions/setup-python@v5 with: python-version: '3.12' - name: Prepare disposable local configuration run: | python - <<'PY' from pathlib import Path import secrets config = Path('.env.example').read_text() Path('.env').write_text(config.replace('change-me-before-running', secrets.token_urlsafe(24))) Path('.env').chmod(0o600) PY - name: Build and wait for readiness run: docker compose --env-file .env up -d --build --wait --wait-timeout 180 - name: Public API scenario run: make test BASE_URL=http://127.0.0.1:8080 PYTHON=python - name: Stop disposable runner stack if: always() run: docker compose --env-file .env down -v