-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b7d2a7d
commit d4600b2
Showing
4 changed files
with
81 additions
and
109 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: "CI test suite" | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
ref: | ||
description: "The branch/tag/commit to run integration tests on" | ||
type: string | ||
required: true | ||
archive-name: | ||
description: "Name of the archive for build artifacts, used during a release" | ||
type: string | ||
default: "" | ||
|
||
permissions: read-all | ||
|
||
concurrency: | ||
group: "${{ github.workflow }}-${{ github.event_name }}-${{ inputs.ref }}" | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
code-quality: | ||
name: "Run code quality" | ||
uses: dbt-labs/actions/.github/workflows/code-quality.yml@add-hatch-actions | ||
with: | ||
ref: ${{ inputs.ref }} | ||
check-command: "hatch run code-quality" | ||
python-version: ${{ vars.DBT_PYTHON_VERSION }} | ||
|
||
unit-tests: | ||
name: "Run unit tests" | ||
uses: dbt-labs/actions/.github/workflows/unit-tests.yml@add-hatch-actions | ||
with: | ||
ref: ${{ inputs.ref }} | ||
test-command: "hatch run unit-tests:all" | ||
python-versions: ${{ vars.DBT_PYTHON_VERSIONS }} | ||
|
||
integration-tests: | ||
name: "Run integration tests" | ||
uses: dbt-labs/actions/.github/workflows/integration-tests.yml@add-hatch-actions | ||
with: | ||
ref: ${{ inputs.ref }} | ||
test-command: "hatch run integration-tests:all" | ||
python-versions-ubuntu: ${{ vars.DBT_PYTHON_VERSIONS }} | ||
python-versions-macos: ${{ vars.DBT_PYTHON_VERSION }} | ||
python-versions-windows: ${{ vars.DBT_PYTHON_VERSION }} | ||
|
||
build-artifacts: | ||
name: "Verify build artifacts" | ||
uses: dbt-labs/actions/.github/workflows/build-release-artifacts.yml@add-hatch-actions | ||
with: | ||
ref: ${{ inputs.ref }} | ||
archive-name: ${{ needs.release-inputs.outputs.archive-name }} |
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
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