forked from simonw/sf-tree-history
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial CI and prod build workflows yml
- Loading branch information
1 parent
ee649f7
commit 128eee7
Showing
3 changed files
with
66 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |