Fix integration test health check

This commit is contained in:
Reckless_Satoshi 2024-09-09 02:13:46 +01:00
parent f66e88da19
commit 1d315a3365
No known key found for this signature in database
GPG Key ID: 9C4585B561315571

View File

@ -61,16 +61,16 @@ jobs:
- name: Wait for coordinator (django server)
run: |
while [ "$(docker inspect --format "{{.State.Health.Status}}" coordinator)" != "healthy" ]; do
while [ "$(docker inspect --format "{{.State.Health.Status}}" test-coordinator)" != "healthy" ]; do
echo "Waiting for coordinator to be healthy..."
sleep 5
done
- name: 'Run tests with coverage'
run: |
docker exec coordinator coverage run manage.py test
docker exec coordinator coverage report
docker exec coordinator coverage html
docker exec test-coordinator coverage run manage.py test
docker exec test-coordinator coverage report
docker exec test-coordinator coverage html
env:
LNVENDOR: ${{ matrix.ln-vendor }}
DEVELOPMENT: True