41 lines
1.2 KiB
YAML
41 lines
1.2 KiB
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:
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 15
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.13'
|
|
- name: Build and start stack
|
|
run: |
|
|
python scripts/setup.py
|
|
chmod +x scripts/restart.sh
|
|
docker compose build migrate
|
|
docker compose up -d --wait
|
|
- name: Run HTTP and resilience checks
|
|
run: |
|
|
make test
|
|
make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
|
python student-tests/check_dependencies.py
|
|
docker compose exec -T db psql -U messenger -d messenger < student-tests/explain.sql
|
|
- name: Show service status
|
|
if: failure()
|
|
run: docker compose ps -a
|
|
- name: Stop stack
|
|
if: always()
|
|
run: docker compose down
|