mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
Create mysql database manually
This commit is contained in:
parent
af52f0eace
commit
db8d93e2e9
6
.github/workflows/mysql.yaml
vendored
6
.github/workflows/mysql.yaml
vendored
@ -14,7 +14,6 @@ jobs:
|
||||
image: mysql:latest
|
||||
env:
|
||||
MYSQL_ALLOW_EMPTY_PASSWORD: yes
|
||||
MYSQL_DATABASE: inventree_test_db
|
||||
MYSQL_USER: inventree
|
||||
MYSQL_PASSWORD: password
|
||||
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
|
||||
@ -34,6 +33,11 @@ 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
|
||||
|
Loading…
Reference in New Issue
Block a user