diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index fff13886..9fe54169 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -113,10 +113,12 @@ jobs: - name: "Check out repository" uses: actions/checkout@v4 + - name: Setup `hatch` + uses: dbt-labs/dbt-adapters/.github/actions/setup-hatch@main + - name: "Test psycopg2 name - default" run: | - python -m pip install . - PSYCOPG2_PIP_ENTRY=$(pip list | grep "psycopg2 " || pip list | grep psycopg2-binary) + PSYCOPG2_PIP_ENTRY=$(hatch run pip list | grep "psycopg2 " || hatch run pip list | grep psycopg2-binary) echo $PSYCOPG2_PIP_ENTRY PSYCOPG2_NAME="${PSYCOPG2_PIP_ENTRY%% *}" @@ -128,10 +130,9 @@ jobs: env: PSYCOPG2_EXPECTED_NAME: psycopg2-binary - - name: "Test psycopg2 name - override" + - name: "Test psycopg2 name - invalide override" run: | - python -m pip install . - PSYCOPG2_PIP_ENTRY=$(pip list | grep "psycopg2 " || pip list | grep psycopg2-binary) + PSYCOPG2_PIP_ENTRY=$(hatch run pip list | grep "psycopg2 " || hatch run pip list | grep psycopg2-binary) echo $PSYCOPG2_PIP_ENTRY PSYCOPG2_NAME="${PSYCOPG2_PIP_ENTRY%% *}" @@ -141,13 +142,12 @@ jobs: exit 1 fi env: - DBT_PSYCOPG2_NAME: psycopg2 - PSYCOPG2_EXPECTED_NAME: psycopg2 + DBT_PSYCOPG2_NAME: rubber-baby-buggy-bumpers + PSYCOPG2_EXPECTED_NAME: psycopg2-binary - - name: "Test psycopg2 name - invalide override" + - name: "Test psycopg2 name - override" run: | - python -m pip install . - PSYCOPG2_PIP_ENTRY=$(pip list | grep "psycopg2 " || pip list | grep psycopg2-binary) + PSYCOPG2_PIP_ENTRY=$(hatch run pip list | grep "psycopg2 " || hatch run pip list | grep psycopg2-binary) echo $PSYCOPG2_PIP_ENTRY PSYCOPG2_NAME="${PSYCOPG2_PIP_ENTRY%% *}" @@ -157,5 +157,5 @@ jobs: exit 1 fi env: - DBT_PSYCOPG2_NAME: rubber-baby-buggy-bumpers - PSYCOPG2_EXPECTED_NAME: psycopg2-binary + DBT_PSYCOPG2_NAME: psycopg2 + PSYCOPG2_EXPECTED_NAME: psycopg2