diff --git a/.github/workflows/changelog-existence.yml b/.github/workflows/changelog-existence.yml index 6e51e8afc..19fa8e0fc 100644 --- a/.github/workflows/changelog-existence.yml +++ b/.github/workflows/changelog-existence.yml @@ -34,8 +34,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-spark contributing guide](https://github.com/dbt-labs/dbt-spark/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 870ac13b3..a0a6db336 100644 --- a/.github/workflows/integration.yml +++ b/.github/workflows/integration.yml @@ -129,17 +129,20 @@ jobs: - name: Update Adapters and Core branches (update dev_requirements.txt) if: github.event_name == 'workflow_dispatch' run: | - ./.github/scripts/update_dev_dependency_branches.sh \ + scripts/update_dev_dependency_branches.sh \ ${{ inputs.dbt_adapters_branch }} \ ${{ inputs.dbt_core_branch }} \ ${{ inputs.dbt_common_branch }} cat hatch.toml + working-directory: ./dbt-spark - name: Install hatch uses: pypa/hatch@install - name: Install python dependencies run: hatch run pip install -r dagger/requirements.txt + working-directory: ./dbt-spark - name: Run tests for ${{ matrix.test }} run: hatch run integration-tests --profile ${{ matrix.test }} + working-directory: ./dbt-spark diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 458048a7f..0eee34819 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -78,6 +78,7 @@ jobs: uses: pypa/hatch@install - run: hatch run unit-tests + working-directory: ./dbt-spark build: name: build packages @@ -100,12 +101,15 @@ jobs: - name: Build distributions run: hatch build + working-directory: ./dbt-spark - name: Show distributions run: ls -lh dist/ + working-directory: ./dbt-spark - name: Check distribution descriptions run: hatch run build:check-all + working-directory: ./dbt-spark - name: Check if this is an alpha version id: check-is-alpha @@ -113,12 +117,14 @@ 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-spark - uses: actions/upload-artifact@v4 with: name: dist path: dist/ overwrite: true + working-directory: ./dbt-spark test-build: name: verify packages / python ${{ matrix.python-version }} / ${{ matrix.os }} / ${{ matrix.dist-type }}