diff --git a/.github/workflows/internal-archive-release.yml b/.github/workflows/internal-archive-release.yml index ba20406..4158550 100644 --- a/.github/workflows/internal-archive-release.yml +++ b/.github/workflows/internal-archive-release.yml @@ -161,10 +161,9 @@ jobs: #################### run-integration-tests: - name: 'Integration Tests (Tox)' + name: 'Integration Tests' runs-on: ubuntu-latest needs: [env-var-setup, job-setup] - if: "${{ needs.env-var-setup.outputs.is_hatch_adapter == 'false' }}" env: TOXENV: integration @@ -176,6 +175,7 @@ jobs: ref: ${{ inputs.sha || 'main' }} - name: "Setup Environment Variables - ./scripts/env-setup.sh" + if: "${{ needs.env-var-setup.outputs.is_hatch_adapter == 'false' }}" run: | if [ -f './scripts/env-setup.sh' ]; then source ./scripts/env-setup.sh @@ -209,11 +209,13 @@ jobs: - name: "Set up Python - ${{ env.PYTHON_TARGET_VERSION }}" + if: "${{ needs.env-var-setup.outputs.is_hatch_adapter == 'false' }}" uses: actions/setup-python@v5 with: python-version: ${{ env.PYTHON_TARGET_VERSION }} - name: "Install Python Dependencies" + if: "${{ needs.env-var-setup.outputs.is_hatch_adapter == 'false' }}" run: | python -m pip install --user --upgrade pip python -m pip --version @@ -221,18 +223,15 @@ jobs: tox --version - name: "Run Tests using tox" + if: "${{ needs.env-var-setup.outputs.is_hatch_adapter == 'false' }}" run: tox - - run-integration-tests-hatch: - name: 'Integration Tests (Hatch)' - needs: [env-var-setup, job-setup] - if: "${{ needs.env-var-setup.outputs.is_hatch_adapter == 'true' }}" - - uses: "dbt-labs/dbt-postgres/.github/workflows/integration-tests.yml@main" - with: - core_branch: "main" - dbt_adapters_branch: "main" + - name: 'Integration Tests (Hatch)' + if: "${{ needs.env-var-setup.outputs.is_hatch_adapter == 'true' }}" + uses: "dbt-labs/dbt-postgres/.github/workflows/integration-tests.yml@main" + with: + core_branch: "main" + dbt_adapters_branch: "main" #################### @@ -242,20 +241,7 @@ jobs: create-internal-release: name: Create release for internal archive runs-on: ubuntu-latest - needs: [env-var-setup, run-unit-tests, run-integration-tests, run-integration-tests-hatch] - # Build artifact if - # 1. Spark invoked (it runs tests via its in-repo workflow) - # 2. Integration tests passed at least via one job above - # if: | - # (needs.env-var-setup.outputs.is_spark_build == 'true') || - # (needs.run-integration-tests.result == 'success' || needs.run-integration-tests-hatch.result == 'success') - - steps: - - name: Debug output - run: | - echo "is_spark_build: ${{ needs.env-var-setup.outputs.is_spark_build }}" - echo "run-integration-tests result: ${{ needs.run-integration-tests.result }}" - echo "run-integration-tests-hatch result: ${{ needs.run-integration-tests-hatch.result }}" + needs: [env-var-setup, run-unit-tests, run-integration-tests] - name: "Checkout provided sha, default to branch main" uses: actions/checkout@v4