diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5b56dd420..0ebd7d822 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,7 +15,7 @@ jobs: MYSQL_ROOT_PASSWORD: "" MYSQL_DATABASE: machina_test ports: - - 3306/tcp + - 3307:3306 options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 postgres: image: postgres:10.8 diff --git a/tests/settings.py b/tests/settings.py index dc428e88e..91bb3a68f 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -48,7 +48,9 @@ def __getitem__(self, item): 'ENGINE': 'django.db.backends.mysql', 'NAME': 'machina_test', 'USER': 'root', - 'PASSWORD': '', + 'PASSWORD': 'root', + 'HOST': 'localhost', + 'PORT': 3307, 'TEST': { 'CHARSET': 'utf8mb4', 'COLLATION': 'utf8mb4_general_ci',