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]
55jobs :
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
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
Original file line number Diff line number Diff line change 11dataset: 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
66In short, ** dataset** makes reading and writing data in databases as simple as reading and writing JSON files.
77
You can’t perform that action at this time.
0 commit comments