diff --git a/.github/workflows/integration_tests.yml b/.github/workflows/integration_tests.yml index 1ef816e..34caf1f 100644 --- a/.github/workflows/integration_tests.yml +++ b/.github/workflows/integration_tests.yml @@ -3,7 +3,7 @@ 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 @@ -13,17 +13,17 @@ jobs: steps: - name: Checkout Branch uses: actions/checkout@v2 - + - name: Install Python uses: actions/setup-python@v2 - with: - python-version: 3.8 - + with: + python-version: 3.9.6 + - name: Install dbt run: pip install -r requirements.txt - name: Run and Test - env: + 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 }} @@ -33,4 +33,4 @@ jobs: run: | cd integration_tests dbt deps - dbt test --data + dbt test -s test_type:singular diff --git a/README.md b/README.md index 8526a94..eea233f 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ Include in `packages.yml`: ```yaml packages: - package: tnightengale/dbt_meta_testing - version: 0.3.4 + version: 0.3.5 ``` For latest release, see https://github.com/tnightengale/dbt-meta-testing/releases. diff --git a/dbt_project.yml b/dbt_project.yml index c36a104..ba912c0 100644 --- a/dbt_project.yml +++ b/dbt_project.yml @@ -1,18 +1,18 @@ # Project name. name: 'dbt_meta_testing' -version: '0.2.0' +version: '0.3.5' config-version: 2 -require-dbt-version: [">=0.21.0", "<0.22.0"] +require-dbt-version: ">=1.0.0" # The "profile" dbt uses for this project. profile: 'dbt_meta_testing' # Configuration paths. -source-paths: ["models"] +model-paths: ["models"] analysis-paths: ["analysis"] test-paths: ["tests"] -data-paths: ["data"] +seed-paths: ["data"] macro-paths: ["macros"] snapshot-paths: ["snapshots"] diff --git a/integration_tests/dbt_project.yml b/integration_tests/dbt_project.yml index 187dead..428dba8 100644 --- a/integration_tests/dbt_project.yml +++ b/integration_tests/dbt_project.yml @@ -8,7 +8,7 @@ profile: 'integration_tests' config-version: 2 -source-paths: ["models"] +model-paths: ["models"] macro-paths: ["macros"] test-paths: ["tests"] @@ -23,14 +23,14 @@ models: marts: +required_tests: {"unique": 1} model_2: - +required_tests: + +required_tests: "mocker.*|unique": 1 "mock_schema_test": 1 - ".*data_test": 1 + ".*data_test": 1 vars: running_intergration_tests: true - + dispatch: - macro_namespace: dbt_meta_testing search_order: ['dbt_meta_testing'] # enable override diff --git a/requirements.txt b/requirements.txt index 434994f..ca506cd 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1 +1 @@ -dbt==0.21.0 +dbt-snowflake==1.0.0