fix(tests): fixed testing DB deployment v9 :O

This commit is contained in:
ribardej
2025-10-29 20:01:21 +01:00
parent dddca9d805
commit d9c562f867

View File

@@ -17,6 +17,8 @@ jobs:
MARIADB_DATABASE: group_project
MARIADB_USER: appuser
MARIADB_PASSWORD: apppass
ports:
- 3306:3306
options: >-
--health-cmd="mariadb-admin ping -h 127.0.0.1 -u root -prootpw --silent"
--health-interval=5s
@@ -24,7 +26,7 @@ jobs:
--health-retries=20
env:
MARIADB_HOST: mariadb
MARIADB_HOST: 127.0.0.1
MARIADB_PORT: "3306"
MARIADB_DB: group_project
MARIADB_USER: appuser
@@ -49,11 +51,6 @@ jobs:
python -m pip install --upgrade pip
pip install -r ./7project/backend/requirements.txt
- name: Wait for DB network
run: |
echo "Waiting 15s for the database network to be ready..."
sleep 15
- name: Run Alembic migrations
run: |
alembic upgrade head