-
Notifications
You must be signed in to change notification settings - Fork 4
72 lines (53 loc) · 1.38 KB
/
dbt_test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
name: Test DBT package
on:
push:
branches: [ "main", "develop" ]
permissions:
contents: read
defaults:
run:
working-directory: integration_tests
jobs:
test-duckdb:
name: Test on DuckDB
runs-on: ubuntu-latest
#environment: production
container:
image: python:3.11
steps:
- name: Checkout
uses: actions/checkout@v3
- name: pip install
run: pip install dbt-core duckdb dbt-duckdb
- name: Install DBT deps
run: dbt deps --target duckdb
- name: load test data
run: dbt seed --target duckdb
- name: dbt test
run: dbt test --target duckdb
test-postgres:
name: Test on Postgres
runs-on: ubuntu-latest
#environment: production
container:
image: python:3.11
# Service containers to run with `container-job`
services:
# Label used to access the service container
postgres:
# Docker Hub image
image: postgres
# Provide the password for postgres
env:
POSTGRES_PASSWORD: postgres
steps:
- name: Checkout
uses: actions/checkout@v3
- name: pip install
run: pip install dbt-core duckdb dbt-postgres
- name: Install DBT deps
run: dbt deps --target postgres
- name: load test data
run: dbt seed --target postgres
- name: dbt test
run: dbt test --target postgres