diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index abf922c..d3ea4ea 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -38,7 +38,6 @@ 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" @@ -46,7 +45,7 @@ jobs: - 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 diff --git a/ci/test.sh b/ci/test.sh index cb707b2..aa6973d 100755 --- a/ci/test.sh +++ b/ci/test.sh @@ -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 diff --git a/{{project_name}}/{{_copier_conf.answers_file}}.jinja b/{{project_name}}/{{_copier_conf.answers_file}}.jinja new file mode 100644 index 0000000..a96840d --- /dev/null +++ b/{{project_name}}/{{_copier_conf.answers_file}}.jinja @@ -0,0 +1,2 @@ +# Changes here will be overwritten by Copier +{{ _copier_answers|to_nice_yaml -}}