From 38b9d30146220034ea59f0c3caa03b6959acfb65 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Fri, 20 Nov 2020 11:08:52 +0200 Subject: [PATCH] Add mysql --- .github/workflows/django.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 66698278..86c92102 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -27,6 +27,17 @@ jobs: --health-retries 5 ports: - 5432:5432 + mysql: + image: mysql:5.7 + env: + MYSQL_ALLOW_EMPTY_PASSWORD: yes + ports: + - 3306 + options: >- + --health-cmd="mysqladmin ping" + --health-interval=10s + --health-timeout=5s + --health-retries=3 steps: - uses: actions/checkout@v2 @@ -41,10 +52,9 @@ jobs: pip install braintree mysqlclient apprise - name: Run Tests env: - DB: postgres + DB: mysql DB_HOST: localhost - DB_PORT: 5432 - DB_USER: postgres - DB_PASSWORD: postgres + DB_PORT: 3306 + DB_USER: root run: | python manage.py test