We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9928e1b commit 2e4006cCopy full SHA for 2e4006c
.github/workflows/ci.yml
@@ -6,8 +6,14 @@ jobs:
6
services:
7
postgres:
8
image: postgres:10.1
9
+ env:
10
+ POSTGRES_USER: postgres
11
+ POSTGRES_PASSWORD: postgres
12
+ POSTGRES_DB: pythonorg
13
ports:
- - 5432:5432
14
+ - 5432:5432
15
+ # needed because the postgres container does not provide a healthcheck
16
+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
17
steps:
18
- name: Check out repository
19
uses: actions/checkout@v2
@@ -33,7 +39,7 @@ jobs:
33
39
run: |
34
40
python -Wd -m coverage run manage.py test -v2
35
41
env:
36
- DATABASE_URL: postgres://postgres:@127.0.0.1:5432/python.org
42
+ DATABASE_URL: postgres://postgres:postgres@localhost:5432/pythonorg
37
43
- name: Coverage
38
44
45
coverage report -m --fail-under=75
0 commit comments