-
Notifications
You must be signed in to change notification settings - Fork 4
46 lines (39 loc) · 1.07 KB
/
diff-quality.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
name: CI Diff-quality
on:
push:
branches:
- diff-quality
env:
DBT_DEFAULT_PROFILE_TARGET: stellar_dbt_public
DBT_PROFILES_DIR: ${{ github.workspace }}
DBT_TARGET: prod
DBT_MAX_BYTES_BILLED: 1000000000000
DBT_JOB_TIMEOUT: 300
DBT_THREADS: 1
DBT_JOB_RETRIES: 1
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0 # Fetch all history
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: 3.8
- name: Install dependencies
run: |
pip install -r requirements.txt
dbt deps
- name: Authenticate to GCP
uses: 'google-github-actions/auth@v2'
with:
project_id: crypto-stellar
credentials_json: "${{ secrets.CREDS_PROD_HUBBLE }}"
- name: Checkout source branch and diff quality
run: |
git checkout ${{ github.ref_name }}
dbt docs generate
diff-quality --violations=sqlfluff --fail-under=95 --compare-branch=origin/master