mirror of
https://github.com/dat515-2025/Group-8.git
synced 2026-03-22 15:12:08 +01:00
fix(tests): fixed testing DB deployment v9 :O
This commit is contained in:
9
.github/workflows/run-tests.yml
vendored
9
.github/workflows/run-tests.yml
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user