-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update pull-request-checks to work with dbt-adapters
- Loading branch information
1 parent
ff8fa55
commit 607074e
Showing
3 changed files
with
89 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
name: "Verify build" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
package: | ||
description: "Choose the package to build" | ||
type: string | ||
default: "dbt-adapters" | ||
branch: | ||
description: "Choose the branch to build" | ||
type: string | ||
default: "main" | ||
repository: | ||
description: "Choose the repository to build, (used primarily when testing a fork)" | ||
type: string | ||
default: "dbt-labs/dbt-adapters" | ||
os: | ||
description: "Choose the OS to test against" | ||
type: string | ||
default: ${{ vars.DEFAULT_RUNNER }} | ||
python-version: | ||
description: "Choose the Python version to test against" | ||
type: string | ||
default: ${{ vars.DEFAULT_PYTHON_VERSION }} | ||
workflow_dispatch: | ||
inputs: | ||
package: | ||
description: "Choose the package to build" | ||
type: choice | ||
options: ["dbt-adapters", "dbt-tests-adapter"] | ||
branch: | ||
description: "Choose the branch to build" | ||
type: string | ||
default: "main" | ||
repository: | ||
description: "Choose the repository to build, (used primarily when testing a fork)" | ||
type: string | ||
default: "dbt-labs/dbt-adapters" | ||
os: | ||
description: "Choose the OS to test against" | ||
type: string | ||
default: ${{ vars.DEFAULT_RUNNER }} | ||
python-version: | ||
description: "Choose the Python version to test against" | ||
type: choice | ||
options: ["3.9", "3.10", "3.11", "3.12"] | ||
|
||
permissions: read-all | ||
|
||
defaults: | ||
run: | ||
shell: bash | ||
|
||
jobs: | ||
package: | ||
uses: ./.github/workflows/_package-directory.yml | ||
with: | ||
package: ${{ inputs.package }} | ||
|
||
build: | ||
needs: package | ||
runs-on: ${{ inputs.os }} | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ inputs.branch }} | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ inputs.python-version }} | ||
- uses: pypa/hatch@install | ||
- run: hatch build && hatch run build:check-all | ||
working-directory: ./${{ needs.package.outputs.directory }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters