-
Notifications
You must be signed in to change notification settings - Fork 7
95 lines (86 loc) · 2.51 KB
/
ci.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
name: Test dbt-risingwave
on: [push]
jobs:
test-with-jaffle_shop:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
services:
risingwave:
image: ghcr.io/risingwavelabs/risingwave:latest # RW version should be manually updated until a released version is compatiable with this adapter.
ports:
- 4566:4566
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Clone jaffle_shop
run: git clone --depth 1 https://github.com/dbt-labs/jaffle_shop.git
- name: Setup dbt profile
run: |
mkdir -p $HOME/.dbt && cat >> $HOME/.dbt/profiles.yml <<EOF
jaffle_shop:
outputs:
dev:
type: risingwave
host: 127.0.0.1
user: root
pass: ""
dbname: dev
port: 4566
schema: public
target: dev
EOF
- name: Install dbt-risingwave globally
run: python3 -m pip install .
- name: dbt-seed
run: dbt seed
working-directory: jaffle_shop
- name: dbt-run
run: dbt run
working-directory: jaffle_shop
- name: dbt-doc
run: dbt docs generate
working-directory: jaffle_shop
test-dbt_rw_nexmark:
runs-on: ubuntu-latest
strategy:
max-parallel: 5
services:
risingwave:
image: ghcr.io/risingwavelabs/risingwave:latest # RW version should be manually updated until a released version is compatiable with this adapter.
ports:
- 4566:4566
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: '3.10'
- name: Clone dbt_rw_nexmark
run: git clone --depth 1 https://github.com/risingwavelabs/dbt_rw_nexmark.git
- name: Setup dbt profile
run: |
mkdir -p $HOME/.dbt && cat >> $HOME/.dbt/profiles.yml <<EOF
dbt_rw_nexmark:
outputs:
dev:
type: risingwave
host: 127.0.0.1
user: root
pass: ""
dbname: dev
port: 4566
schema: public
target: dev
EOF
- name: Install dbt-risingwave globally
run: python3 -m pip install .
- name: dbt-run
run: dbt run
working-directory: dbt_rw_nexmark
- name: dbt-doc
run: dbt docs generate
working-directory: dbt_rw_nexmark