mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Mysql fixes
This commit is contained in:
parent
d09483f30c
commit
9e4218d02f
6
.github/workflows/mysql.yaml
vendored
6
.github/workflows/mysql.yaml
vendored
@ -14,6 +14,9 @@ jobs:
|
||||
image: mysql:5.7
|
||||
env:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||
MYSQL_DATABASE: inventree_test_db
|
||||
MYSQL_USER: inventree
|
||||
MYSQL_PASSWORD: password
|
||||
ports:
|
||||
- 3306
|
||||
|
||||
@ -30,9 +33,6 @@ jobs:
|
||||
pip3 install invoke
|
||||
pip3 install mysqlclient
|
||||
invoke install
|
||||
- name: Create Database
|
||||
run: |
|
||||
mysql -e 'CREATE DATABASE inventree_test_db;'
|
||||
- name: Run Tests
|
||||
run: |
|
||||
cd InvenTree
|
||||
|
@ -12,8 +12,8 @@ if 'test' in sys.argv:
|
||||
# Ensure mysql backend is being used
|
||||
'ENGINE': 'django.db.backends.mysql',
|
||||
'NAME': 'inventree_test_db',
|
||||
'USER': 'travis',
|
||||
'PASSWORD': '',
|
||||
'USER': 'inventree',
|
||||
'PASSWORD': 'password',
|
||||
'HOST': '127.0.0.1'
|
||||
'PORT': '3306',
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user