Skip to content

Commit

Permalink
Add initial CI and prod build workflows yml
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenwindflower committed Mar 16, 2024
1 parent ee649f7 commit 128eee7
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Load data into MotherDuck

on:
merge:
branches:
- main

jobs:
build:
name: Load data into MotherDuck
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Python
uses: actions/[email protected]
with:
python-version: "3.11.x"
- name: Install Python dependencies
run: |
python3 -m pip install uv
uv pip install --system -r requirements.txt
- name: Run Transformations
run: |
dbt deps
dbt build --target prod
36 changes: 36 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: PR CI Checks

on:
pull_request:
branches:
- main

jobs:
ci:
name: CI Check
runs-on: macos-latest
steps:
- name: Checkout
uses: actions/[email protected]
- name: Setup Python
uses: actions/[email protected]
with:
python-version: "3.11.x"
- name: Setup Node
uses: actions/[email protected]
with:
node-version: 20.x
- name: Install Python dependencies
run: |
python3 -m pip install uv
uv pip install --system -r requirements.txt
- name: Run Transformations + Lint SQL
run: |
dbt deps
dbt build
sqlfluff lint models --format github-annotation-native
- name: Build Evidence
run: |
npm install --prefix ./reports
npm run sources --prefix ./reports
npm run build --prefix ./reports
5 changes: 4 additions & 1 deletion profiles.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
dbtree:
target: dev
outputs:
dev:
type: duckdb
path: ./dbtree.db
threads: 8
prod:
type: duckdb
path: md:dbtree
targt: dev

0 comments on commit 128eee7

Please sign in to comment.