8000 Merge pull request #44 from Lyncoln/login · urban-toolkit/curio@6934b05 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Merge pull request #44 from Lyncoln/login #92

Merge pull request #44 from Lyncoln/login

Merge pull request #44 from Lyncoln/login #92

name: Full stack build
on:
push:
branches:
- main
paths:
- 'utk_curio/**'
pull_request:
branches: [ main ]
jobs:
test-compose:
runs-on: ubuntu-latest
steps:
- name: 📥 Checkout repository
uses: actions/checkout@v3
- name: 🔨 Build all service images in parallel
run: docker compose build --parallel
- name: ▶️ Start containers
run: docker compose up -d
- name: 🧪 Wait for services to become healthy
run: |
echo "Waiting for servers to be healthy..."
timeout 120 bash -c '
until [ "$(docker inspect -f "{{.State.Health.Status}}" $(docker compose ps -q curio))" = "healthy" ]; do
echo "Still waiting..."
sleep 2
done
'
- name: 🧪 Run backend unit tests
run: |
docker compose exec curio \
python -m unittest discover -s utk_curio/backend/tests -t . -p "test_*.py" -v
- name: 🧪 Run sandbox unit tests
run: |
docker compose exec curio \
python -m unittest discover -s utk_curio/sandbox/tests -t . -p "test_*.py" -v
- name: 🌐 Check frontend availability
run: |
curl --fail http://localhost:8080 || (echo "Frontend not reachable" && exit 1)
- name: 🧹 Tear down containers
run: docker compose down
0