Pamela Fox commited on
Commit
4ce5a36
·
1 Parent(s): 43c3bf3

postgresql

Browse files
Files changed (1) hide show
  1. .github/workflows/check.yaml +9 -0
.github/workflows/check.yaml CHANGED
@@ -4,6 +4,15 @@ on: [push, pull_request]
4
  jobs:
5
  build:
6
  runs-on: ubuntu-latest
 
 
 
 
 
 
 
 
 
7
  steps:
8
  - uses: actions/checkout@v3
9
  - name: Set up Python 3
 
4
  jobs:
5
  build:
6
  runs-on: ubuntu-latest
7
+ services:
8
+ postgres:
9
+ image: postgres:11
10
+ env:
11
+ POSTGRES_PASSWORD: postgres
12
+ ports:
13
+ - 5432:5432
14
+ # needed because the postgres container does not provide a healthcheck
15
+ options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
16
  steps:
17
  - uses: actions/checkout@v3
18
  - name: Set up Python 3