Skip to content

Commit dd286b3

Browse files
committed
Add postgresql
1 parent 7749574 commit dd286b3

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/build.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,19 @@ on: [push]
55
jobs:
66
python:
77
runs-on: ubuntu-latest
8+
9+
services:
10+
postgres:
11+
image: postgres
12+
env:
13+
POSTGRES_USER: postgres
14+
POSTGRES_PASSWORD: postgres
15+
POSTGRES_DB: dataset
16+
ports:
17+
- 5432:5432
18+
# needed because the postgres container does not provide a healthcheck
19+
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
20+
821
steps:
922
- uses: actions/checkout@v1
1023
- name: Show ref
@@ -25,6 +38,11 @@ jobs:
2538
DATABASE_URI: 'sqlite:///:memory:'
2639
run: |
2740
make test
41+
- name: Run PostgreSQL tests
42+
env:
43+
DATABASE_URI: 'postgresql+psycopg2://postgres:postgres@postgres/dataset'
44+
run: |
45+
make test
2846
- name: Build a distribution
2947
run: |
3048
python setup.py sdist bdist_wheel

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
dataset: databases for lazy people
22
==================================
33

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

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

0 commit comments

Comments
 (0)