Skip to content

Commit d4600b2

Browse files
committed
typo
1 parent b7d2a7d commit d4600b2

File tree

4 files changed

+81
-109
lines changed

4 files changed

+81
-109
lines changed

.github/workflows/ci-test-suite.yml

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
1+
name: "CI test suite"
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
ref:
7+
description: "The branch/tag/commit to run integration tests on"
8+
type: string
9+
required: true
10+
archive-name:
11+
description: "Name of the archive for build artifacts, used during a release"
12+
type: string
13+
default: ""
14+
15+
permissions: read-all
16+
17+
concurrency:
18+
group: "${{ github.workflow }}-${{ github.event_name }}-${{ inputs.ref }}"
19+
cancel-in-progress: true
20+
21+
jobs:
22+
code-quality:
23+
name: "Run code quality"
24+
uses: dbt-labs/actions/.github/workflows/code-quality.yml@add-hatch-actions
25+
with:
26+
ref: ${{ inputs.ref }}
27+
check-command: "hatch run code-quality"
28+
python-version: ${{ vars.DBT_PYTHON_VERSION }}
29+
30+
unit-tests:
31+
name: "Run unit tests"
32+
uses: dbt-labs/actions/.github/workflows/unit-tests.yml@add-hatch-actions
33+
with:
34+
ref: ${{ inputs.ref }}
35+
test-command: "hatch run unit-tests:all"
36+
python-versions: ${{ vars.DBT_PYTHON_VERSIONS }}
37+
38+
integration-tests:
39+
name: "Run integration tests"
40+
uses: dbt-labs/actions/.github/workflows/integration-tests.yml@add-hatch-actions
41+
with:
42+
ref: ${{ inputs.ref }}
43+
test-command: "hatch run integration-tests:all"
44+
python-versions-ubuntu: ${{ vars.DBT_PYTHON_VERSIONS }}
45+
python-versions-macos: ${{ vars.DBT_PYTHON_VERSION }}
46+
python-versions-windows: ${{ vars.DBT_PYTHON_VERSION }}
47+
48+
build-artifacts:
49+
name: "Verify build artifacts"
50+
uses: dbt-labs/actions/.github/workflows/build-release-artifacts.yml@add-hatch-actions
51+
with:
52+
ref: ${{ inputs.ref }}
53+
archive-name: ${{ needs.release-inputs.outputs.archive-name }}

.github/workflows/daily-checks.yml

Lines changed: 11 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -1,61 +1,29 @@
11
# **what?**
2-
# The purpose of this workflow is to trigger CI to run for each release
3-
# branch on a regular cadence. If the CI workflow fails for a branch, it
4-
# will post to dev-core-alerts to raise awareness.
2+
# - run scheduled CI on protected branches
3+
# - post a failure message in #dev-adapter-alerts for failures
54
#
65
# **why?**
7-
# Ensures release branches are always shippable and not broken.
8-
# Also, can catch any dependencies shifting beneath us that might
9-
# introduce breaking changes (could also impact Cloud).
10-
6+
# - ensure release branches are always shippable
7+
# - raise awareness of dependencies shifting beneath us
8+
#
119
# **when?**
12-
# - daily based on DBT_DAILY_CHECKS_SCHEDULE
10+
# - daily at 5:00 AM UTC
1311
# - manually
1412
name: "Daily checks"
1513

1614
on:
1715
schedule:
18-
- cron: ${{ vars.DBT_DAILY_CHECKS_SCHEDULE }}
16+
- cron: 0 5 * * *
1917
workflow_dispatch:
2018

2119
permissions: read-all
2220

2321
jobs:
24-
code-quality:
25-
name: "Code quality"
26-
uses: ./.github/workflows/code-quality.yml
27-
strategy:
28-
matrix:
29-
branch: ${{ fromJSON(vars.DBT_DAILY_CHECKS_BRANCHES) }}
30-
with:
31-
branch: ${{ matrix.branch }}
32-
33-
unit-tests:
34-
name: "Unit tests"
35-
uses: ./.github/workflows/unit-tests.yml
36-
strategy:
37-
matrix:
38-
branch: ${{ fromJSON(vars.DBT_DAILY_CHECKS_BRANCHES) }}
39-
with:
40-
branch: ${{ matrix.branch }}
41-
42-
integration-tests:
43-
name: "Integration tests"
44-
uses: ./.github/workflows/integration-tests.yml
45-
strategy:
46-
matrix:
47-
branch: ${{ fromJSON(vars.DBT_DAILY_CHECKS_BRANCHES) }}
48-
with:
49-
branch: ${{ matrix.branch }}
50-
51-
build-artifacts:
52-
name: "Build artifacts"
53-
uses: dbt-labs/actions/.github/workflows/build-artifacts.yml@add-hatch-actions
54-
strategy:
55-
matrix:
56-
branch: ${{ fromJSON(vars.DBT_DAILY_CHECKS_BRANCHES) }}
22+
ci-test-suite:
23+
name: "CI test suite"
24+
uses: ./.github/workflows/ci-test-suite.yml
5725
with:
58-
branch: ${{ matrix.branch }}
26+
ref: "main"
5927

6028
post-failure:
6129
runs-on: ubuntu-latest
Lines changed: 12 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
# **what?**
2+
# - run CI on all PRs against protected branches
3+
#
4+
# **why?**
5+
# - ensure code is verified prior to being merged into a protected branch
6+
#
7+
# **when?**
8+
# - a PR is opened against a protected branch
9+
# - code is pushed to a PR against a protected branch
110
name: "Pull request checks"
211

312
on:
@@ -13,32 +22,8 @@ concurrency:
1322
cancel-in-progress: true
1423

1524
jobs:
16-
code-quality:
17-
name: "Run code quality"
18-
uses: dbt-labs/actions/.github/workflows/code-quality.yml
25+
ci-test-suite:
26+
name: "CI test suite"
27+
uses: ./.github/workflows/ci-test-suite.yml
1928
with:
2029
ref: ${{ github.event.pull_request.head.ref }}
21-
check-command: "hatch run code-quality"
22-
python-version: ${{ vars.DBT_PYTHON_VERSION }}
23-
24-
unit-tests:
25-
name: "Run unit tests"
26-
uses: dbt-labs/actions/.github/workflows/unit-tests.yml
27-
with:
28-
ref: ${{ github.event.pull_request.head.ref }}
29-
test-command: "hatch run unit-tests:all"
30-
python-versions: ${{ vars.DBT_PYTHON_VERSIONS }}
31-
32-
integration-tests:
33-
name: "Run unit tests"
34-
uses: dbt-labs/actions/.github/workflows/integration-tests.yml
35-
with:
36-
ref: ${{ github.event.pull_request.head.ref }}
37-
test-command: "hatch run integration-tests:all"
38-
python-versions-ubuntu: ${{ vars.DBT_PYTHON_VERSIONS }}
39-
python-versions-macos: ${{ vars.DBT_PYTHON_VERSION }}
40-
python-versions-windows: ${{ vars.DBT_PYTHON_VERSION }}
41-
42-
verify-build-artifacts:
43-
name: "Verify build artifacts"
44-
uses: dbt-labs/actions/.github/workflows/build-artifacts.yml@add-hatch-actions

.github/workflows/release.yml

Lines changed: 5 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -135,56 +135,22 @@ jobs:
135135
version: ${{ inputs.version }}
136136
secrets: inherit
137137

138-
code-quality:
139-
name: "Run code quality"
140-
needs:
141-
- release-branch
142-
- version-bump
143-
- changelog
144-
uses: dbt-labs/actions/.github/workflows/code-quality.yml@add-hatch-actions
145-
with:
146-
branch: ${{ needs.release-branch.outputs.branch }}
147-
check-command: "hatch run code-quality"
148-
149-
unit-tests:
150-
name: "Run unit tests"
138+
ci-test-suite:
139+
name: "Run code quality, unit tests, and integration tests, and build artifacts"
151140
needs:
141+
- release-inputs
152142
- release-branch
153143
- version-bump
154144
- changelog
155-
uses: dbt-labs/actions/.github/workflows/unit-tests.yml@add-hatch-actions
145+
uses: ./.github/workflows/ci-test-suite.yml
156146
with:
157147
ref: ${{ needs.release-branch.outputs.branch }}
158-
159-
integration-tests:
160-
name: "Run unit tests"
161-
needs:
162-
- release-branch
163-
- version-bump
164-
- changelog
165-
uses: dbt-labs/actions/.github/workflows/integration-tests.yml@add-hatch-actions
166-
with:
167-
branch: ${{ needs.release-branch.outputs.branch }}
168-
test-command: "hatch run unit-tests:all"
169-
170-
build-artifacts:
171-
name: "Build artifacts"
172-
if: ${{ !failure() && !cancelled() }}
173-
needs:
174-
- release-inputs
175-
- release-branch
176-
- code-quality
177-
- unit-tests
178-
- integration-tests
179-
uses: dbt-labs/actions/.github/workflows/build-artifacts.yml@add-hatch-actions
180-
with:
181-
branch: ${{ needs.release-branch.outputs.branch }}
182148
archive-name: ${{ needs.release-inputs.outputs.archive-name }}
183149

184150
merge-changes:
185151
name: "Merge the version bump and changelog updates"
186152
needs:
187-
- build-artifacts
153+
- ci-test-suite
188154
- release-branch
189155
runs-on: ubuntu-latest
190156
outputs:

0 commit comments

Comments
 (0)