41 lines
1.3 KiB
YAML
41 lines
1.3 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: 25
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.13'
|
|
- name: Build local stack
|
|
run: |
|
|
chmod +x scripts/restart.sh scripts/stop-one.sh
|
|
python -m pip install -r requirements-bootstrap.txt
|
|
python scripts/start.py
|
|
- name: Verify application and failure scenarios
|
|
run: |
|
|
make test BASE_URL=https://localhost:18443 CA_FILE=secrets/operator/ca.pem
|
|
make test-security BASE_URL=https://localhost:18443 CA_FILE=secrets/operator/ca.pem
|
|
docker compose run --rm --no-deps security-check
|
|
python student-tests/check_rotation.py
|
|
python student-tests/check_grafana.py
|
|
- name: Show status on failure
|
|
if: failure()
|
|
run: docker compose ps -a
|
|
- name: Stop stack
|
|
if: always()
|
|
run: docker compose stop
|