Skip to content

Commit

Permalink
try to run first time
Browse files Browse the repository at this point in the history
  • Loading branch information
marcosmarxm committed Jul 25, 2024
1 parent bcdd72e commit c6b6adc
Show file tree
Hide file tree
Showing 19 changed files with 775 additions and 4,151 deletions.
36 changes: 36 additions & 0 deletions .github/ci/sample.profiles.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# HEY! This file is used in the dbt package integrations tests with Buildkite.
# You should __NEVER__ check credentials into version control. Thanks for reading :)

config:
send_anonymous_usage_stats: False
use_colors: True

integration_tests:
target: bigquery
outputs:
# bigquery:
# type: bigquery
# method: service-account-json
# project: "dbt-package-testing"
# schema: github_integration_tests
# threads: 8
# keyfile_json: "{{ env_var('GCLOUD_SERVICE_KEY') | as_native }}"
# snowflake:
# type: snowflake
# account: "{{ env_var('SNOWFLAKE_DBT_ACCOUNT') }}"
# user: "{{ env_var('SNOWFLAKE_DBT_USER') }}"
# password: "{{ env_var('SNOWFLAKE_DBT_PASSWORD') }}"
# role: "{{ env_var('SNOWFLAKE_DBT_ROLE') }}"
# database: "{{ env_var('SNOWFLAKE_DBT_DATABASE') }}"
# warehouse: "{{ env_var('SNOWFLAKE_DBT_WAREHOUSE') }}"
# schema: TEXT_SCHEMA
# threads: 8
postgres:
type: postgres
host: "{{ env_var('POSTGRES_DBT_HOST') }}"
user: "{{ env_var('POSTGRES_DBT_USER') }}"
pass: "{{ env_var('POSTGRES_DBT_PASSWORD') }}"
dbname: "{{ env_var('POSTGRES_DBT_DBNAME') }}"
port: 5432
schema: airbyte
threads: 8
15 changes: 9 additions & 6 deletions .github/workflows/run_integration_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,16 @@ jobs:
- name: checkout
uses: actions/checkout@v2

- name: Install the project dependencies
run: poetry install

- name: Copy profiles
run: cp .github/ci/sample.profiles.yml ~/.dbt/profiles.yml

- name: Get what connector we are testing
id: get_connector
run: echo "::set-output name=connector::source_zendesk_support"

- name: Install the project dependencies
working-directory: connectors/${{ steps.get_connector.outputs.connector }}
run: |
pwd
ls
poetry install
- name: Run dbt tests
working-directory: connectors/${{ steps.get_connector.outputs.connector }}/integration_test
run: dbt run --target postgres --vars '{"target_database": "postgres", "zendesk_database": "postgres"}'
729 changes: 728 additions & 1 deletion ...ectors/source_zendesk_support/poetry.lock → poetry.lock

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ readme = "README.md"
python = "^3.11"
dbt = "^1.0.0.38.6"
dbt-snowflake = "^1.8.3"
dbt-bigquery = "^1.8.2"
dbt-postgres = "^1.8.2"


[build-system]
Expand Down
9 changes: 0 additions & 9 deletions source-github/README.md

This file was deleted.

30 changes: 0 additions & 30 deletions source-github/dbt_project.yaml

This file was deleted.

Loading

0 comments on commit c6b6adc

Please sign in to comment.