- poetry
https://python-poetry.org/docs/
-
Clone the repo
git clone git@github.com:firstnapat/dbt-unit-test-101.git
-
Install Python package
poetry install
-
Install dbt packages
dbt deps
-
Setting profiles
- Get service account from GCP
- set
keyfile: your-service-account-path.json
in profiles.yml
- Load source to BigQuery
dbt seed
- Run Staging model
dbt run
- Test
dbt test --select tests/unit/staging/
- Learn more about dbt in the docs
- Check out dbt-unit-test dbt-unit-test