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 # This job validates the skeleton, not a student solution. application: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: scripts/setup.sh - run: docker compose up -d --build --wait - run: make test BASE_URL=http://localhost:8082 - run: python3 student-tests/check.py --base-url http://localhost:8082 - run: docker compose exec -T api python - < student-tests/db_check.py - run: make test-persistence ACTION_SCRIPT=scripts/restart.sh BASE_URL=http://localhost:8082 - if: always() run: docker compose down