Skip to content

Commit

Permalink
Start PostgreSQL server before unittesting
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Feb 7, 2024
1 parent e9dc5c1 commit 409aa79
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/unittests-postgresql.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,23 @@ jobs:
test:
runs-on: ubuntu-latest

services:
postgres:
image: postgres

env:
POSTGRES_PASSWORD: postgres
POSTGRES_USER: postgres
POSTGRES_DB: bitcoinlib_test

options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

strategy:
matrix:
python: ["3.10"]
Expand Down

0 comments on commit 409aa79

Please sign in to comment.