use python instead of uv
All checks were successful
PR tests / build-and-smoke (pull_request) Successful in 1m19s

This commit is contained in:
2025-11-25 09:46:46 +01:00
parent 7a74ead335
commit 6ef463458f

View File

@@ -40,7 +40,7 @@ jobs:
- name: Start server in container and smoke test HTTP (in-container)
run: |
# start the server inside the container
docker exec -d semapform-test uv run uvicorn api_service:app --host 0.0.0.0 --port 8001
docker exec -d semapform-test python api_service.py
# send a POST request to /api/validate-signature with signature="ST 250 U42 (15)"
docker exec semapform-test python - << 'PY'
@@ -60,25 +60,6 @@ jobs:
sys.exit(1)
PY
- name: Start server in container and smoke test HTTP (in-container)
run: |
# start the server inside the container
docker exec -d semapform-test uv run uvicorn api_service:app --host 0.0.0.0 --port 8001
# perform an in-container HTTP check using Python stdlib (avoids requiring curl)
docker exec semapform-test python - << 'PY'
import time,urllib.request,sys
for _ in range(20):
try:
urllib.request.urlopen('http://127.0.0.1:8001/health', timeout=2)
print('ok')
sys.exit(0)
except Exception:
time.sleep(1)
print('failed')
sys.exit(1)
PY
- name: Cleanup container
if: always()
run: |