Add isolated application build and smoke CI job
This commit is contained in:
@@ -0,0 +1,25 @@
|
||||
name: Application smoke
|
||||
on: [push, pull_request]
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
application:
|
||||
# Run on an isolated disposable runner with Docker Compose v2, never a shared production host.
|
||||
runs-on: ubuntu-latest
|
||||
timeout-minutes: 30
|
||||
env:
|
||||
COMPOSE_PROJECT_NAME: mtusi-ci
|
||||
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
|
||||
- run: python scripts/bootstrap.py
|
||||
- run: docker compose config --quiet
|
||||
- run: docker compose up -d --build --wait --wait-timeout 180
|
||||
- run: make test PYTHON=python
|
||||
- name: Stop this disposable test stack
|
||||
if: always()
|
||||
run: docker compose down --volumes --remove-orphans
|
||||
Reference in New Issue
Block a user