Skip to content

Commit

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

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

build:
name: build packages
Expand All @@ -104,24 +105,28 @@ 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
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-snowflake

- uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
path: dbt-snowflake/dist/
overwrite: true

test-build:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/nightly-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release_prep_hatch.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand All @@ -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'
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -343,6 +348,7 @@ jobs:

- name: "Run unit tests"
run: hatch run unit-tests
working-directory: ./dbt-snowflake

integration-tests:
runs-on: ubuntu-latest
Expand All @@ -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
Expand Down

0 comments on commit bc3baca

Please sign in to comment.