Skip to content

Commit ac0cc87

Browse files
committed
fix test dwh write dbt profies
1 parent 503e3e2 commit ac0cc87

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/test-warehouse.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
run: |
137137
mkdir -p ~/.dbt
138138
DBT_VERSION=$(pip show dbt-core | grep -i version | awk '{print $2}' | sed 's/\.//g')
139-
UNDERSCORED_REF_NAME=$(echo "dbt_${DBT_VERSION}_${BRANCH_NAME}" | head -c 32 | sed "s/-/_/g")
139+
UNDERSCORED_REF_NAME=$(echo "${{ inputs.warehouse-type }}_dbt_${DBT_VERSION}_${BRANCH_NAME}" | awk '{print tolower($0)}' | head -c 40 | sed "s/[-\/]/_/g")
140140
echo "$PROFILES_YML" | base64 -d | sed "s/<SCHEMA_NAME>/py_$UNDERSCORED_REF_NAME/g" > ~/.dbt/profiles.yml
141141
142142
- name: Run Python package unit tests
@@ -168,7 +168,7 @@ jobs:
168168
env:
169169
SLACK_WEBHOOK: ${{ secrets.CI_SLACK_WEBHOOK }}
170170
run: >
171-
edr monitor
171+
edr monitor
172172
-t "${{ inputs.warehouse-type }}"
173173
--group-by table
174174
--project-dir "${{ env.DBT_PKG_INTEG_TESTS_DIR }}"
@@ -206,7 +206,7 @@ jobs:
206206
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
207207
AZURE_CONNECTION_STRING: ${{ secrets.AZURE_CONNECTION_STRING }}
208208
run: >
209-
edr monitor send-report
209+
edr monitor send-report
210210
-t "${{ inputs.warehouse-type }}"
211211
--project-dir "${{ env.DBT_PKG_INTEG_TESTS_DIR }}"
212212
--project-profile-target "${{ inputs.warehouse-type }}"

0 commit comments

Comments
 (0)