File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -5,6 +5,19 @@ on: [push]
5
5
jobs :
6
6
python :
7
7
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
+
8
21
steps :
9
22
- uses : actions/checkout@v1
10
23
- name : Show ref
25
38
DATABASE_URI : ' sqlite:///:memory:'
26
39
run : |
27
40
make test
41
+ - name : Run PostgreSQL tests
42
+ env :
43
+ DATABASE_URI : ' postgresql+psycopg2://postgres:postgres@postgres/dataset'
44
+ run : |
45
+ make test
28
46
- name : Build a distribution
29
47
run : |
30
48
python setup.py sdist bdist_wheel
Original file line number Diff line number Diff line change 1
1
dataset: databases for lazy people
2
2
==================================
3
3
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 )
5
5
6
6
In short, ** dataset** makes reading and writing data in databases as simple as reading and writing JSON files.
7
7
You can’t perform that action at this time.
0 commit comments