Skip to content

Commit

Permalink
Update test requirements in pyproject.toml via bash script
Browse files Browse the repository at this point in the history
  • Loading branch information
colin-rogers-dbt committed Feb 13, 2024
1 parent 30db71a commit b22cded
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,19 @@ on:
- "*.latest"
pull_request:
workflow_dispatch:
dbt_adapters_branch:
inputs:
description: "The branch of dbt-adapters to evaluate"
type: string
required: true
default: "main"
workflow_call:
inputs:
dbt_adapters_branch:
description: "The branch of dbt-adapters to evaluate"
type: string
required: true
default: "main"

permissions: read-all

Expand All @@ -26,6 +39,14 @@ jobs:
with:
persist-credentials: false

- name: Update Adapters and Core branches
if: ${{ github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch'}}
shell: bash
run: |
./.github/scripts/update_dev_packages.sh \
"main" \
${{ github.event.inputs.dbt_adapters_branch }}
- name: Setup `hatch`
uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main

Expand Down
27 changes: 27 additions & 0 deletions .github/workflows/integration-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,25 @@ on:
- "*.latest"
pull_request:
workflow_dispatch:
dbt_adapters_branch:
inputs:
description: "The branch of dbt-adapters to evaluate"
type: string
required: true
default: "main"
workflow_call:
inputs:
dbt_adapters_branch:
description: "The branch of dbt-adapters to use"
type: string
required: true
default: "main"
core_branch:
description: "The branch of dbt-core to use"
type: string
required: true
default: "main"


permissions: read-all

Expand Down Expand Up @@ -42,6 +61,14 @@ jobs:
- name: Check out repository
uses: actions/checkout@v4

- name: Update Adapters and Core branches
if: ${{ github.event_name == 'workflow_call' || github.event_name == 'workflow_dispatch'}}
shell: bash
run: |
./.github/scripts/update_dev_packages.sh \
${{ github.event.inputs.core_branch }} \
${{ github.event.inputs.dbt_adapters_branch }}
- name: Setup postgres
shell: bash
run: psql -f ./scripts/setup_test_database.sql
Expand Down

0 comments on commit b22cded

Please sign in to comment.