35 lines
1014 B
YAML
35 lines
1014 B
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
|
|
- name: Build and start the stand
|
|
run: |
|
|
sh scripts/init-env.sh
|
|
docker compose config --quiet
|
|
docker compose build migrate
|
|
docker compose up -d --no-build --wait --wait-timeout 90
|
|
- name: Check public API and persistence
|
|
run: |
|
|
make test
|
|
make test-persistence ACTION_SCRIPT=scripts/restart.sh
|
|
- name: Show services and remove test data
|
|
if: always()
|
|
run: |
|
|
docker compose ps --all || true
|
|
docker compose down -v
|