From 0577561c50a35eec5c317d52efeea2efc836e939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Fri, 20 Nov 2020 11:35:46 +0200 Subject: [PATCH] Add databases to the testing matrix, take 3 --- .github/workflows/django.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index da75fbf4..d826fe3f 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -15,6 +15,11 @@ jobs: matrix: db: [sqlite, postgres, mysql] python-version: [3.6, 3.7, 3.8] + include: + - db: postgres + db_port: 5432 + - db: mysql + db_port: 3306 services: postgres: @@ -28,14 +33,14 @@ jobs: --health-timeout 5s --health-retries 5 ports: - - 2020:5432 + - 5432:5432 mysql: image: mysql:5.7 env: MYSQL_USER: hc MYSQL_PASSWORD: hunter2 ports: - - 2020:3306 + - 3306:3306 options: >- --health-cmd="mysqladmin ping" --health-interval=10s @@ -57,7 +62,7 @@ jobs: env: DB: ${{ matrix.db }} DB_HOST: 127.0.0.1 - DB_PORT: 2020 + DB_PORT: ${{ matrix.db_port }} DB_USER: hc DB_PASSWORD: hunter2 run: |