diff --git a/.github/workflows/mysql.yaml b/.github/workflows/mysql.yaml index 39968a3295..134e9cfb6b 100644 --- a/.github/workflows/mysql.yaml +++ b/.github/workflows/mysql.yaml @@ -33,11 +33,6 @@ jobs: pip3 install invoke pip3 install mysqlclient invoke install - - name: Create Database - run: | - sudo /etc/init.d/mysql start - mysql -e 'CREATE_DATABASE inventree_test_db;' -uroot -proot - mysql -e 'SHOW DATABASES;' -uroot -proot - name: Run Tests run: | cd InvenTree diff --git a/InvenTree/InvenTree/ci_mysql.py b/InvenTree/InvenTree/ci_mysql.py index 9aa9f2a344..5ae6361fb4 100644 --- a/InvenTree/InvenTree/ci_mysql.py +++ b/InvenTree/InvenTree/ci_mysql.py @@ -14,6 +14,6 @@ if 'test' in sys.argv: 'NAME': 'inventree_test_db', 'USER': 'inventree', 'PASSWORD': 'password', - 'HOST': '127.0.0.1', + 'HOST': 'mysql', 'PORT': '3306', }