File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,15 @@ jobs:
14
14
15
15
runs-on : ubuntu-latest
16
16
17
- # Service containers to run with `container-job`
18
17
services :
19
- # Label used to access the service container
20
18
postgres :
21
- # Docker Hub image
22
- image : postgres
23
- # Provide the password for postgres
19
+ image : postgres:latest
24
20
env :
25
- POSTGRES_PASSWORD : password
26
- # Set health checks to wait until postgres has started
21
+ POSTGRES_USER : postgres
22
+ POSTGRES_PASSWORD : postgres
23
+ POSTGRES_DB : test_db
24
+ ports :
25
+ - 5432:5432
27
26
options : >-
28
27
--health-cmd pg_isready
29
28
--health-interval 10s
44
43
poetry run pytest src
45
44
env :
46
45
# The hostname used to communicate with the PostgreSQL service container
47
- DATABASE_URL : postgresql://postgres:password@postgres:5432/postgres
46
+ DATABASE_URL : postgresql://postgres:password@postgres:5432/test_db
You can’t perform that action at this time.
0 commit comments