-
Notifications
You must be signed in to change notification settings - Fork 14
36 lines (31 loc) · 1.06 KB
/
integration_tests.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
name: Integration Tests
on:
# Triggers the workflow on push or pull request events but only for the master branch
pull_request:
branches: [ master ]
jobs:
ci:
runs-on: ubuntu-latest
env:
DBT_PROFILES_DIR: . # Use integration_tests/profiles.yml
steps:
- name: Checkout Branch
uses: actions/checkout@v2
- name: Install Python
uses: actions/setup-python@v2
with:
python-version: 3.9.6
- name: Install dbt
run: pip install -r requirements.txt
- name: Run and Test
env:
CI_SNOWFLAKE_DBT_ACCOUNT: ${{ secrets.CI_SNOWFLAKE_DBT_ACCOUNT }}
CI_SNOWFLAKE_DBT_USER: ${{ secrets.CI_SNOWFLAKE_DBT_USER }}
CI_SNOWFLAKE_DBT_PASS: ${{ secrets.CI_SNOWFLAKE_DBT_PASS }}
CI_SNOWFLAKE_DBT_ROLE: ${{ secrets.CI_SNOWFLAKE_DBT_ROLE }}
CI_SNOWFLAKE_DBT_DATABASE: ${{ secrets.CI_SNOWFLAKE_DBT_DATABASE }}
CI_SNOWFLAKE_DBT_WAREHOUSE: ${{ secrets.CI_SNOWFLAKE_DBT_WAREHOUSE }}
run: |
cd integration_tests
dbt deps
dbt test -s test_type:singular