Skip to content

Commit 3423070

Browse files
author
Student
committed
add ci.yml workflow
1 parent baa8959 commit 3423070

1 file changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [ "main" ]
6+
7+
jobs:
8+
build-and-deploy:
9+
runs-on: ubuntu-latest
10+
env:
11+
DBT_USER: ${{ secrets.DBT_USER }}
12+
DBT_PASSWORD: ${{ secrets.DBT_PASSWORD }}
13+
DATABASE_HOST: ${{ secrets.DATABASE_HOST }}
14+
DATABASE_PORT: ${{ secrets.DATABASE_PORT }}
15+
16+
steps:
17+
- name: Checkout branch
18+
uses: actions/checkout@v4
19+
20+
- name: Setup Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: '3.9'
24+
25+
- name: Install dbt
26+
run: pip install dbt-core==1.8.7 dbt-postgres==1.8.2
27+
28+
- name: Install dbt Packages
29+
run: dbt deps
30+
31+
- name: Deploy & Test Models (CI)
32+
run: >
33+
dbt build
34+
--profiles-dir _project_docs/automation
35+
--target ci
36+

0 commit comments

Comments
 (0)