diff --git a/.github/workflows/internal-archive-release.yml b/.github/workflows/internal-archive-release.yml index f064088..b09f057 100644 --- a/.github/workflows/internal-archive-release.yml +++ b/.github/workflows/internal-archive-release.yml @@ -111,6 +111,7 @@ jobs: run-integration-tests: runs-on: ubuntu-latest needs: [job-setup] + if: contains(fromJSON('["redshift"]'), inputs.dbms_name) env: TOXENV: integration @@ -122,7 +123,6 @@ jobs: ref: ${{ inputs.sha || 'main' }} - name: "Setup Environment Variables - ./scripts/env-setup.sh" - if: contains(fromJSON('["redshift"]'), inputs.dbms_name) run: source ./scripts/env-setup.sh - name: "Setup Environment Variables - Secrets Context" @@ -157,11 +157,7 @@ jobs: with: python-version: ${{ env.PYTHON_TARGET_VERSION }} - ################### - # Testing with Tox - ################### - name: "Install Python Dependencies" - if: contains(fromJSON('["redshift"]'), inputs.dbms_name) run: | python -m pip install --user --upgrade pip python -m pip --version @@ -169,25 +165,26 @@ jobs: tox --version - name: "Run Tests using tox" - if: contains(fromJSON('["redshift"]'), inputs.dbms_name) run: tox - ##################### - # Testing with Hatch - ##################### - - name: "Setup `hatch`" - if: contains(fromJSON('["postgres"]'), inputs.dbms_name) - uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main + run-integration-tests-hatch: + name: 'Integration Tests (Hatch)' + runs-on: ubuntu-latest + needs: [job-setup] + if: contains(fromJSON('["postgres"]'), inputs.dbms_name) + + uses: "dbt-labs/dbt-postgres/.github/workflows/integration-tests.yml" + + with: + core_branch: "main" + dbt_adapters_branch: "main" - - name: "Run Tests using hatch" - if: contains(fromJSON('["postgres"]'), inputs.dbms_name) - run: hatch run integration-tests:all create-internal-release: name: Create release for internal archive runs-on: ubuntu-latest - needs: [run-unit-tests, run-integration-tests] + needs: [run-unit-tests, run-integration-tests, run-integration-tests-hatch] steps: - name: "Checkout provided sha, default to branch main"