Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add answers file to template. #17

Merged
merged 3 commits into from
Oct 12, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,14 @@ jobs:
# to have a live connection to compile the sample model, but unfortunately
# dbt seems to require it.
credentials_json: ${{ secrets.GOOGLE_CREDENTIALS }}
- uses: actions/setup-python@v3
- name: Setup git
run: |
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- name: Install dependencies
run: |
pip install copier poetry
poetry config virtualenvs.create false
poetry config virtualenvs.in-project true
# TODO: once we are on dbt-snowflake 1.5, no need to pipe to a file, we can
# just use $SNOWFLAKE_PRIVATE_KEY
- name: Set up private key
Expand Down
8 changes: 4 additions & 4 deletions ci/test.sh
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This stuff doesn't affect the template, but improves how we test it in CI (separate virual environments for the bigquery and Snowflake paths)

Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,16 @@ for TARGET in Snowflake BigQuery; do
poetry install --with dev

# Run quality checks
pre-commit run --all-files
poetry run pre-commit run --all-files

# Verify that the docs build
pushd transform
dbt deps
dbt docs generate
poetry run dbt deps
poetry run dbt docs generate
popd

cp -r transform/target docs/dbt_docs
mkdocs build
poetry run mkdocs build

popd
done
2 changes: 2 additions & 0 deletions {{project_name}}/{{_copier_conf.answers_file}}.jinja
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Changes here will be overwritten by Copier
{{ _copier_answers|to_nice_yaml -}}