Skip to content

Commit 9c9da8e

Browse files
committed
dbt: Add CI configuration
1 parent 088ed54 commit 9c9da8e

File tree

2 files changed

+75
-0
lines changed

2 files changed

+75
-0
lines changed

.github/dependabot.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,11 @@ updates:
9292

9393
# Frameworks.
9494

95+
- directory: "/framework/dbt/basic"
96+
package-ecosystem: "pip"
97+
schedule:
98+
interval: "daily"
99+
95100
- directory: "/framework/gradio"
96101
package-ecosystem: "pip"
97102
schedule:

.github/workflows/framework-dbt.yml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
name: dbt
2+
3+
on:
4+
pull_request:
5+
branches: ~
6+
paths:
7+
- '.github/workflows/framework-dbt.yml'
8+
- 'framework/dbt/**'
9+
- '/requirements.txt'
10+
push:
11+
branches: [ main ]
12+
paths:
13+
- '.github/workflows/framework-dbt.yml'
14+
- 'framework/dbt/**'
15+
- '/requirements.txt'
16+
17+
# Allow job to be triggered manually.
18+
workflow_dispatch:
19+
20+
# Run job each night after CrateDB nightly has been published.
21+
schedule:
22+
- cron: '0 3 * * *'
23+
24+
# Cancel in-progress jobs when pushing to the same branch.
25+
concurrency:
26+
cancel-in-progress: true
27+
group: ${{ github.workflow }}-${{ github.ref }}
28+
29+
jobs:
30+
test:
31+
name: "
32+
Python: ${{ matrix.python-version }}
33+
CrateDB: ${{ matrix.cratedb-version }}
34+
on ${{ matrix.os }}"
35+
runs-on: ${{ matrix.os }}
36+
strategy:
37+
fail-fast: false
38+
matrix:
39+
os: [ 'ubuntu-latest' ]
40+
python-version: [ '3.9', '3.11' ]
41+
cratedb-version: [ 'nightly' ]
42+
43+
services:
44+
cratedb:
45+
image: crate/crate:${{ matrix.cratedb-version }}
46+
ports:
47+
- 4200:4200
48+
- 5432:5432
49+
env:
50+
CRATE_HEAP_SIZE: 4g
51+
52+
steps:
53+
54+
- name: Acquire sources
55+
uses: actions/checkout@v4
56+
57+
- name: Set up Python
58+
uses: actions/setup-python@v5
59+
with:
60+
python-version: ${{ matrix.python-version }}
61+
architecture: x64
62+
cache: 'pip'
63+
cache-dependency-path: |
64+
framework/dbt/basic/requirements.txt
65+
66+
- name: Validate framework/dbt/basic
67+
run: |
68+
cd framework/dbt/basic
69+
pip install -r requirements.txt
70+
dbt build

0 commit comments

Comments
 (0)