Skip to content

Commit

Permalink
replace atomic workflows with shared workflows in dbt-adapters
Browse files Browse the repository at this point in the history
  • Loading branch information
mikealfare committed Dec 4, 2024
1 parent 2f24351 commit 7de51ab
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 138 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/_code-quality.yml

This file was deleted.

29 changes: 0 additions & 29 deletions .github/workflows/_publish-internal.yml

This file was deleted.

32 changes: 0 additions & 32 deletions .github/workflows/_publish-pypi.yml

This file was deleted.

38 changes: 0 additions & 38 deletions .github/workflows/_unit-tests.yml

This file was deleted.

10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ concurrency:

jobs:
unit-tests:
uses: dbt-labs/dbt-adapters/.github/workflows/_unit-tests.yml@monorepo-prep
uses: dbt-labs/dbt-adapters/.github/workflows/_unit-tests.yml@monorepo/shared-workflows
with:
package: "dbt-athena"
branch: ${{ inputs.branch }}

integration-tests:
uses: ./.github/workflows/integration-tests.yml
uses: ./.github/workflows/_integration-tests.yml
with:
branch: ${{ inputs.branch }}
repository: ${{ github.repository }}
Expand All @@ -42,7 +42,7 @@ jobs:
publish-internal:
if: ${{ inputs.pypi-internal == true }}
needs: [unit-tests, integration-tests]
uses: dbt-labs/dbt-adapters/.github/workflows/publish-internal.yml@monorepo-prep
uses: dbt-labs/dbt-adapters/.github/workflows/_publish-internal.yml@monorepo/shared-workflows
with:
package: "dbt-athena"
deploy-to: ${{ inputs.deploy-to }}
Expand All @@ -52,7 +52,7 @@ jobs:
publish-pypi:
if: ${{ inputs.pypi-public == true }}
needs: [unit-tests, integration-tests]
uses: dbt-labs/dbt-adapters/.github/workflows/publish-pypi.yml@monorepo-prep
uses: dbt-labs/dbt-adapters/.github/workflows/_publish-pypi.yml@monorepo/shared-workflows
with:
package: "dbt-athena"
deploy-to: ${{ inputs.deploy-to }}
Expand All @@ -63,7 +63,7 @@ jobs:
# dbt-athena-community is hard pinned to dbt-athena to ensure they are the same
# this means we need to finish publishing dbt-athena before starting to build dbt-athena-community
needs: publish-pypi
uses: dbt-labs/dbt-adapters/.github/workflows/publish-pypi.yml@monorepo-prep
uses: dbt-labs/dbt-adapters/.github/workflows/_publish-pypi.yml@monorepo/shared-workflows
with:
package: "dbt-athena-community"
deploy-to: ${{ inputs.deploy-to }}
Expand Down
14 changes: 3 additions & 11 deletions .github/workflows/pull-request-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,10 @@ concurrency:

jobs:
code-quality:
uses: dbt-labs/dbt-adapters/.github/workflows/_code-quality.yml@monorepo-prep
strategy:
matrix:
package: ["dbt-athena", "dbt-athena-community"]
os: [ubuntu-22.04]
python-version: ["3.9", "3.10", "3.11", "3.12"]
uses: dbt-labs/dbt-adapters/.github/workflows/_code-quality.yml@monorepo/shared-workflows
with:
package: ${{ matrix.package }}
branch: ${{ github.event.pull_request.head.ref }}
repository: ${{ github.event.pull_request.head.repo.full_name }}
os: ${{ matrix.os }}
python-version: ${{ matrix.python-version }}

changelog:
uses: dbt-labs/actions/.github/workflows/changelog-existence.yml@main
Expand All @@ -32,7 +24,7 @@ jobs:
secrets: inherit

verify-builds:
uses: dbt-labs/dbt-adapters/.github/workflows/_verify-build.yml
uses: dbt-labs/dbt-adapters/.github/workflows/_verify-build.yml@monorepo/shared-workflows
strategy:
matrix:
package: ["dbt-athena", "dbt-athena-community"]
Expand All @@ -46,7 +38,7 @@ jobs:
python-version: ${{ matrix.python-version }}

unit-tests:
uses: dbt-labs/dbt-adapters/.github/workflows/_unit-tests.yml@monorepo-prep
uses: dbt-labs/dbt-adapters/.github/workflows/_unit-tests.yml@monorepo/shared-workflows
strategy:
matrix:
package: ["dbt-athena", "dbt-athena-community"]
Expand Down

0 comments on commit 7de51ab

Please sign in to comment.