diff --git a/.github/workflows/changelog-existence.yml b/.github/workflows/changelog-existence.yml index 9d3ccdef3..1f47f0c90 100644 --- a/.github/workflows/changelog-existence.yml +++ b/.github/workflows/changelog-existence.yml @@ -33,8 +33,7 @@ permissions: jobs: changelog: - uses: dbt-labs/actions/.github/workflows/changelog-existence.yml@main + uses: dbt-labs/dbt-adapters/.github/workflows/_changelog-entry-check.yml@main with: - changelog_comment: "Thank you for your pull request! We could not find a changelog entry for this change. For details on how to document a change, see the [dbt-snowflake contributing guide](https://github.com/dbt-labs/dbt-snowflake/blob/main/CONTRIBUTING.md)." - skip_label: "Skip Changelog" + pull-request: ${{ github.event.pull_request.number }} secrets: inherit # this is only acceptable because we own the action we're calling diff --git a/.github/workflows/integration.yml b/.github/workflows/integration.yml index b939e2581..2439dc44c 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -144,6 +144,7 @@ jobs: ${{ inputs.dbt_core_branch }} \ ${{ inputs.dbt_common_branch }} cat hatch.toml + working-directory: ./dbt-snowflake - name: Install python dependencies uses: pypa/hatch@install @@ -167,6 +168,7 @@ jobs: DBT_TEST_USER_1: dbt_test_role_1 DBT_TEST_USER_2: dbt_test_role_2 DBT_TEST_USER_3: dbt_test_role_3 + working-directory: ./dbt-snowflake require-label-comment: runs-on: ubuntu-latest diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index f545c9d62..65d7d5b4c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -80,6 +80,7 @@ jobs: uses: pypa/hatch@install - run: hatch run unit-tests + working-directory: ./dbt-snowflake build: name: build packages @@ -104,12 +105,15 @@ jobs: - name: Build distributions run: hatch build + working-directory: ./dbt-snowflake - name: Show distributions run: ls -lh dist/ + working-directory: ./dbt-snowflake - name: Check distribution descriptions run: hatch run build:check-all + working-directory: ./dbt-snowflake - name: Check if this is an alpha version id: check-is-alpha @@ -117,11 +121,12 @@ jobs: export is_alpha=0 if [[ "$(ls -lh dist/)" == *"a1"* ]]; then export is_alpha=1; fi echo "is_alpha=$is_alpha" >> $GITHUB_OUTPUT + working-directory: ./dbt-snowflake - uses: actions/upload-artifact@v4 with: name: dist - path: dist/ + path: dbt-snowflake/dist/ overwrite: true test-build: diff --git a/.github/workflows/nightly-release.yml b/.github/workflows/nightly-release.yml index 17bf8102f..0bae42980 100644 --- a/.github/workflows/nightly-release.yml +++ b/.github/workflows/nightly-release.yml @@ -59,6 +59,7 @@ jobs: - id: version-number-sources run: echo "current_version=$(hatch version)" >> $GITHUB_OUTPUT + working-directory: ./dbt-snowflake - name: "Audit Version And Parse Into Parts" id: semver diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index e3e86c151..f8fbbd61b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -148,10 +148,11 @@ jobs: archive_name=${{ github.event.repository.name }}-${{ inputs.version }}-${{ inputs.deploy-to }} echo "name=$archive_name" >> $GITHUB_OUTPUT - run: hatch build && hatch run build:check-all + working-directory: ./dbt-snowflake - uses: actions/upload-artifact@v4 with: name: ${{ steps.archive.outputs.name }} - path: dist/ + path: dbt-snowflake/dist/ retention-days: 3 github-release: diff --git a/.github/workflows/release_prep_hatch.yml b/.github/workflows/release_prep_hatch.yml index de782ad1a..7e189f9c0 100644 --- a/.github/workflows/release_prep_hatch.yml +++ b/.github/workflows/release_prep_hatch.yml @@ -127,6 +127,7 @@ jobs: is_current=true fi echo "is-current=$is_current" >> $GITHUB_OUTPUT + working-directory: ./dbt-snowflake - name: "[INFO] Skip version bump" if: steps.version.outputs.is-current == 'true' @@ -153,6 +154,7 @@ jobs: does_exist=true fi echo "exists=$does_exist">> $GITHUB_OUTPUT + working-directory: ./dbt-snowflake - name: "[INFO] Skip changelog generation" if: steps.changelog.outputs.exists == 'true' @@ -249,11 +251,13 @@ jobs: changie merge env: CHANGIE_CORE_TEAM: ${{ needs.core-team.outputs.team_membership }} + working-directory: ./dbt-snowflake - name: "Remove trailing whitespace and missing new lines" # this step will fail on whitespace errors but also correct them continue-on-error: true run: hatch run code-quality + working-directory: ./dbt-snowflake - name: "Commit & push changes" run: | @@ -301,6 +305,7 @@ jobs: - name: "Bump version to ${{ inputs.version }}" run: hatch version ${{ inputs.version }} + working-directory: ./dbt-snowflake - name: "Commit & push changes" run: | @@ -343,6 +348,7 @@ jobs: - name: "Run unit tests" run: hatch run unit-tests + working-directory: ./dbt-snowflake integration-tests: runs-on: ubuntu-latest @@ -366,6 +372,7 @@ jobs: - name: "Run integration tests" run: hatch run integration-tests + working-directory: ./dbt-snowflake merge-release-branch: runs-on: ubuntu-latest