Publish - #403 - VanTudor #228
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
name: "Pull request checks" | |
run-name: "Publish - #${{ github.event.number }} - ${{ github.actor }}" | |
on: | |
pull_request_target: | |
types: [opened, reopened, synchronize, labeled, unlabeled] | |
# only run this once per PR at a time | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.number }} | |
cancel-in-progress: true | |
jobs: | |
changelog-entry: | |
uses: ./.github/workflows/_changelog-entry-check.yml | |
with: | |
package: "dbt-athena" | |
pull-request: ${{ github.event.pull_request.number }} | |
secrets: inherit | |
code-quality: | |
uses: ./.github/workflows/_code-quality.yml | |
with: | |
branch: ${{ github.event.pull_request.head.ref }} | |
repository: ${{ github.event.pull_request.head.repo.full_name }} | |
verify-builds: | |
uses: ./.github/workflows/_verify-build.yml | |
strategy: | |
fail-fast: false | |
matrix: | |
package: | |
- "dbt-adapters" | |
- "dbt-tests-adapter" | |
- "dbt-athena" | |
- "dbt-athena-community" | |
- "dbt-bigquery" | |
- "dbt-spark" | |
os: [ubuntu-22.04] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
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 }} | |
unit-tests: | |
uses: ./.github/workflows/_unit-tests.yml | |
strategy: | |
fail-fast: false | |
matrix: | |
package: | |
- "dbt-adapters" | |
- "dbt-athena" | |
- "dbt-athena-community" | |
- "dbt-bigquery" | |
- "dbt-spark" | |
os: [ ubuntu-22.04 ] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
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 }} | |
integration-tests-not-flaky: | |
uses: ./.github/workflows/_integration-tests.yml | |
strategy: | |
fail-fast: false | |
matrix: | |
package: | |
- "dbt-athena" | |
- "dbt-athena-community" | |
- "dbt-bigquery" | |
- "dbt-spark" | |
os: [ubuntu-22.04] | |
python-version: ["3.9", "3.10", "3.11", "3.12"] | |
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 }} | |
is-flaky-test-run: false | |
secrets: inherit | |
# Special case here for Athena, since we have two identical packages -- dbt-athena and dbt-athena-community | |
# We don't want certain tests within this adapter to run in parallel | |
integration-tests-flaky-athena: | |
uses: ./.github/workflows/_integration-tests.yml | |
strategy: | |
fail-fast: false | |
max-parallel: 1 | |
matrix: | |
package: | |
- "dbt-athena" | |
- "dbt-athena-community" | |
os: [ ubuntu-22.04 ] | |
python-version: [ "3.9", "3.10", "3.11", "3.12" ] | |
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 }} | |
is-flaky-test-run: true | |
secrets: inherit | |
# This job does nothing and is only used for branch protection | |
results: | |
name: "Pull request checks" # keep this name, branch protection references it | |
if: always() | |
needs: [changelog-entry, code-quality, verify-builds, unit-tests, integration-tests] | |
runs-on: ${{ vars.DEFAULT_RUNNER }} | |
steps: | |
- uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} | |
allowed-skips: 'changelog-entry' |