forked from mtusi2026/mtusi2026lab7
lab7:fix
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
name: Skeleton contracts
|
||||
name: Lab 7 checks
|
||||
on: [push, pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
@@ -12,5 +12,28 @@ jobs:
|
||||
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.
|
||||
# Add build, readiness and make test in a separate application job.
|
||||
application:
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 20
|
||||
env:
|
||||
COMPOSE_PROJECT_NAME: lab7-ci-${{ github.run_id }}-${{ github.run_attempt }}
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
with:
|
||||
persist-credentials: false
|
||||
- name: Check Docker runtime
|
||||
run: |
|
||||
docker info --format '{{.ServerVersion}}'
|
||||
docker compose version
|
||||
- name: Build, bootstrap and wait for both API replicas
|
||||
run: scripts/start.sh
|
||||
- name: Run public HTTPS smoke
|
||||
run: make test CA_FILE="$PWD/secrets/authority/ca.crt"
|
||||
- name: Show service status after failure
|
||||
if: failure()
|
||||
run: |
|
||||
if test -f compose.yaml; then docker compose ps --all; fi
|
||||
- name: Stop CI stack
|
||||
if: always()
|
||||
run: |
|
||||
if test -f compose.yaml; then docker compose down; fi
|
||||
|
||||
Reference in New Issue
Block a user