-
Notifications
You must be signed in to change notification settings - Fork 59
44 lines (37 loc) · 1.5 KB
/
pull-request-checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: "Pull request checks"
on:
pull_request_target:
types:
- opened
- synchronize
permissions: read-all
concurrency:
group: "${{ github.workflow }}-${{ github.event_name }}-${{ github.event.pull_request.head.ref }}"
cancel-in-progress: true
jobs:
code-quality:
name: "Run code quality"
uses: dbt-labs/actions/.github/workflows/code-quality.yml
with:
ref: ${{ github.event.pull_request.head.ref }}
check-command: "hatch run code-quality"
python-version: ${{ vars.DBT_TEST_PYTHON_VERSION }}
unit-tests:
name: "Run unit tests"
uses: dbt-labs/actions/.github/workflows/unit-tests.yml
with:
ref: ${{ github.event.pull_request.head.ref }}
test-command: "hatch run unit-tests:all"
python-versions: ${{ vars.DBT_TEST_PYTHON_ALL_VERSIONS }}
integration-tests:
name: "Run unit tests"
uses: dbt-labs/actions/.github/workflows/integration-tests.yml
with:
ref: ${{ github.event.pull_request.head.ref }}
test-command: "hatch run integration-tests:all"
python-versions-ubuntu: ${{ vars.DBT_TEST_PYTHON_ALL_VERSIONS }}
python-versions-macos: ${{ vars.DBT_TEST_PYTHON_VERSION }}
python-versions-windows: ${{ vars.DBT_TEST_PYTHON_VERSION }}
verify-build-artifacts:
name: "Verify build artifacts"
uses: dbt-labs/actions/.github/workflows/build-artifacts.yml@add-hatch-actions