Try postgresql service
This commit is contained in:
parent
f8ce8f5476
commit
d84c06b0b1
1 changed files with 15 additions and 1 deletions
16
.github/workflows/pythonpackage.yml
vendored
16
.github/workflows/pythonpackage.yml
vendored
|
|
@ -16,7 +16,21 @@ jobs:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
python-version: [3.7, 3.8]
|
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:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue