Skip to content

Commit

Permalink
Add postgresql
Browse files Browse the repository at this point in the history
  • Loading branch information
pudo committed Mar 15, 2020
1 parent 7749574 commit dd286b3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
18 changes: 18 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ on: [push]
jobs:
python:
runs-on: ubuntu-latest

services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: dataset
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5

steps:
- uses: actions/checkout@v1
- name: Show ref
Expand All @@ -25,6 +38,11 @@ jobs:
DATABASE_URI: 'sqlite:///:memory:'
run: |
make test
- name: Run PostgreSQL tests
env:
DATABASE_URI: 'postgresql+psycopg2://postgres:postgres@postgres/dataset'
run: |
make test
- name: Build a distribution
run: |
python setup.py sdist bdist_wheel
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
dataset: databases for lazy people
==================================

[![Build Status](https://api.travis-ci.org/pudo/dataset.png)](https://travis-ci.org/pudo/dataset)
![build](https://github.com/pudo/dataset/workflows/build/badge.svg)

In short, **dataset** makes reading and writing data in databases as simple as reading and writing JSON files.

Expand Down

0 comments on commit dd286b3

Please sign in to comment.