Skip to content

Commit

Permalink
try services approach
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Jan 30, 2024
1 parent 6989641 commit c020dff
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,26 @@ jobs:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11"]

services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: password
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- name: Check out repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup postgres
uses: ./.github/actions/setup-postgres-linux
shell: bash
run: psql -d postgres -U root -a -f ./scripts/setup_test_database.sql

- name: Setup `hatch`
uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main
Expand Down

0 comments on commit c020dff

Please sign in to comment.