Skip to content

Commit

Permalink
update workflows for the new subpackage directory
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Jan 6, 2025
1 parent 9c2143b commit 6cecedd
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/changelog-existence.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 4 additions & 1 deletion .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
6 changes: 6 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ jobs:
uses: pypa/hatch@install

- run: hatch run unit-tests
working-directory: ./dbt-spark

build:
name: build packages
Expand All @@ -100,25 +101,30 @@ 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
run: |
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 }}
Expand Down

0 comments on commit 6cecedd

Please sign in to comment.