File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -14,16 +14,15 @@ jobs:
1414
1515 runs-on : ubuntu-latest
1616
17- # Service containers to run with `container-job`
1817 services :
19- # Label used to access the service container
2018 postgres :
21- # Docker Hub image
22- image : postgres
23- # Provide the password for postgres
19+ image : postgres:latest
2420 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
2726 options : >-
2827 --health-cmd pg_isready
2928 --health-interval 10s
4443 poetry run pytest src
4544 env :
4645 # 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