Browse Source

Add databases to the testing matrix, take 3

pull/453/head
Pēteris Caune 4 years ago
parent
commit
0577561c50
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      .github/workflows/django.yml

+ 8
- 3
.github/workflows/django.yml View File

@ -15,6 +15,11 @@ jobs:
matrix: matrix:
db: [sqlite, postgres, mysql] db: [sqlite, postgres, mysql]
python-version: [3.6, 3.7, 3.8] python-version: [3.6, 3.7, 3.8]
include:
- db: postgres
db_port: 5432
- db: mysql
db_port: 3306
services: services:
postgres: postgres:
@ -28,14 +33,14 @@ jobs:
--health-timeout 5s --health-timeout 5s
--health-retries 5 --health-retries 5
ports: ports:
- 2020:5432
- 5432:5432
mysql: mysql:
image: mysql:5.7 image: mysql:5.7
env: env:
MYSQL_USER: hc MYSQL_USER: hc
MYSQL_PASSWORD: hunter2 MYSQL_PASSWORD: hunter2
ports: ports:
- 2020:3306
- 3306:3306
options: >- options: >-
--health-cmd="mysqladmin ping" --health-cmd="mysqladmin ping"
--health-interval=10s --health-interval=10s
@ -57,7 +62,7 @@ jobs:
env: env:
DB: ${{ matrix.db }} DB: ${{ matrix.db }}
DB_HOST: 127.0.0.1 DB_HOST: 127.0.0.1
DB_PORT: 2020
DB_PORT: ${{ matrix.db_port }}
DB_USER: hc DB_USER: hc
DB_PASSWORD: hunter2 DB_PASSWORD: hunter2
run: | run: |


Loading…
Cancel
Save