Skip to content

Commit

Permalink
Merge pull request #17 from cagov/track-answers
Browse files Browse the repository at this point in the history
Add answers file to template.
  • Loading branch information
AeriShan-ODI authored Oct 12, 2023
2 parents 38c0140 + cda5fed commit de902ac
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
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
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 -}}

0 comments on commit de902ac

Please sign in to comment.