update workflow

This commit is contained in:
hay-kot 2021-11-26 12:08:39 -09:00
parent 2e982e18ce
commit 60d5fe9277

View File

@ -10,9 +10,17 @@ on:
jobs: jobs:
tests: tests:
runs-on: ubuntu-latest
env: env:
PRODUCTION: false PRODUCTION: false
runs-on: ubuntu-latest
strategy:
fail-fast: true
matrix:
Database: [sqlite, postgres]
# Services
services: services:
postgres: postgres:
image: postgres image: postgres
@ -23,6 +31,8 @@ jobs:
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5 options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
ports: ports:
- 5432:5432 - 5432:5432
# Steps
steps: steps:
#---------------------------------------------- #----------------------------------------------
# check-out repo and set-up python # check-out repo and set-up python
@ -63,14 +73,8 @@ jobs:
# run test suite # run test suite
#---------------------------------------------- #----------------------------------------------
- name: Run Test Suite - name: Run Test Suite
run: |
make test-all
#----------------------------------------------
# run test suite
#----------------------------------------------
- name: Run Test Suite Postgres
env: env:
DB_ENGINE: postgres DB_ENGINE: ${{ matrix.Database }}
POSTGRES_SERVER: localhost POSTGRES_SERVER: localhost
run: | run: |
make test-all make test-all