From d09483f30cf8f2e0f74fd204765ee6fa52fdf2a2 Mon Sep 17 00:00:00 2001 From: Oliver Walters Date: Wed, 31 Mar 2021 17:28:30 +1100 Subject: [PATCH] Workflow fixes --- .github/workflows/mysql.yaml | 5 ++++- .github/workflows/postgresql.yaml | 2 ++ InvenTree/InvenTree/ci_mysql.py | 1 + InvenTree/InvenTree/ci_postgresql.py | 1 + 4 files changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mysql.yaml b/.github/workflows/mysql.yaml index f8b50eedab..7de1bcfc59 100644 --- a/.github/workflows/mysql.yaml +++ b/.github/workflows/mysql.yaml @@ -11,9 +11,12 @@ jobs: services: mysql: - image: mysql + image: mysql:5.7 env: MYSQL_ALLOW_EMPTY_PASSWORD: yes + ports: + - 3306 + steps: - name: Checkout Code uses: actions/checkout@v2 diff --git a/.github/workflows/postgresql.yaml b/.github/workflows/postgresql.yaml index 9279e6719e..0c48ad8599 100644 --- a/.github/workflows/postgresql.yaml +++ b/.github/workflows/postgresql.yaml @@ -14,6 +14,8 @@ jobs: image: postgres env: POSTGRES_PASSWORD: password + ports: + - 5432 steps: - name: Checkout Code diff --git a/InvenTree/InvenTree/ci_mysql.py b/InvenTree/InvenTree/ci_mysql.py index 0a61866082..18c6f09a16 100644 --- a/InvenTree/InvenTree/ci_mysql.py +++ b/InvenTree/InvenTree/ci_mysql.py @@ -15,4 +15,5 @@ if 'test' in sys.argv: 'USER': 'travis', 'PASSWORD': '', 'HOST': '127.0.0.1' + 'PORT': '3306', } diff --git a/InvenTree/InvenTree/ci_postgresql.py b/InvenTree/InvenTree/ci_postgresql.py index 899ee6ded5..09fbd7a459 100644 --- a/InvenTree/InvenTree/ci_postgresql.py +++ b/InvenTree/InvenTree/ci_postgresql.py @@ -14,4 +14,5 @@ if 'test' in sys.argv: 'NAME': 'inventree_test_db', 'USER': 'postgres', 'PASSWORD': 'password', + 'PORT': '5432' }