28 lines
731 B
YAML
28 lines
731 B
YAML
name: Student application
|
|
on: [push, pull_request]
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
application:
|
|
runs-on: ubuntu-24.04
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
with:
|
|
persist-credentials: false
|
|
- name: Generate local synthetic configuration
|
|
shell: pwsh
|
|
run: ./scripts/init-env.ps1
|
|
- name: Build and start
|
|
run: |
|
|
docker compose config --quiet
|
|
docker compose up -d --build
|
|
- name: Verify both replicas and run the public smoke test
|
|
run: |
|
|
python3 student-tests/grade3.py ready
|
|
make test PYTHON=python3
|
|
- name: Stop the CI stack
|
|
if: always()
|
|
run: docker compose down
|