Skip to content

Commit b7f95f8

Browse files
authored
Update django-tests.yml
1 parent a9adf91 commit b7f95f8

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/django-tests.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
--health-timeout 5s
2525
--health-retries 5
2626
ports:
27-
- 3306:3306
27+
- "3306:3306"
2828

2929
steps:
3030
- name: Clean up any existing containers using port 3306
@@ -45,10 +45,13 @@ jobs:
4545
run: |
4646
until [ "$(docker inspect -f '{{.State.Health.Status}}' my_sql_db)" == "healthy" ]; do
4747
echo "Waiting for MySQL to be healthy..."
48-
sleep 5
48+
sleep 10
4949
done
5050
echo "MySQL is healthy."
5151
52+
- name: Check MySQL Logs
53+
run: docker logs my_sql_db
54+
5255
- name: Run Django Tests
5356
run: docker-compose -f code/docker-compose.yml exec -T app python manage.py test
5457

0 commit comments

Comments
 (0)