This commit is contained in:
Oliver Walters 2021-03-31 17:45:57 +11:00
parent 631e41e22a
commit af52f0eace
2 changed files with 5 additions and 6 deletions

View File

@ -19,7 +19,7 @@ jobs:
MYSQL_PASSWORD: password
options: --health-cmd="mysqladmin ping" --health-interval=5s --health-timeout=2s --health-retries=3
ports:
- 3306
- 3306:3306
steps:
- name: Checkout Code

View File

@ -13,9 +13,11 @@ jobs:
postgres:
image: postgres
env:
POSTGRES_USER: inventree
POSTGRES_PASSWORD: password
POSTGRES_DB: inventree_test_db
ports:
- 5432
- 5432:5432
steps:
- name: Checkout Code
@ -28,11 +30,8 @@ jobs:
run: |
sudo apt-get install libpq-dev
pip3 install invoke
pip3 install pyscopg2
pip3 install psycopg2
invoke install
- name: Create Database
run: |
psql -c 'create database inventree_test_db;' -U postgres
- name: Run Tests
run: |
cd InvenTree