Try postgresql service

This commit is contained in:
Griatch 2020-05-16 23:07:46 +02:00 committed by GitHub
parent f8ce8f5476
commit d84c06b0b1

View file

@ -16,7 +16,21 @@ jobs:
strategy:
matrix:
python-version: [3.7, 3.8]
TESTING_DB: [sqlite3, postgresql, mysql]
TESTING_DB: [sqlite3, postgresql, mysql]
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: postgres
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}