From 1ffb3cb58a4538f48046707f0e2dc1252ce62a08 Mon Sep 17 00:00:00 2001 From: Mike Alfare Date: Fri, 7 Jun 2024 12:45:05 -0400 Subject: [PATCH] use hatch envs for psycopg2 test --- .github/workflows/integration-tests.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/integration-tests.yml b/.github/workflows/integration-tests.yml index 2b2fb884..3093a7c4 100644 --- a/.github/workflows/integration-tests.yml +++ b/.github/workflows/integration-tests.yml @@ -115,7 +115,7 @@ jobs: - name: "Test psycopg2 name - default" run: | - pip install --upgrade --force-reinstall . + hatch env prune PSYCOPG2_NAME=$(hatch run pip show psycopg2 || pip show psycopg2-binary | grep Name | cut -d " " -f 2) if [[ "$PSYCOPG2_NAME" != "$PSYCOPG2_EXPECTED_NAME" ]]; then @@ -126,7 +126,7 @@ jobs: - name: "Test psycopg2 name - invalid override" run: | - pip install --upgrade --force-reinstall . + hatch env prune PSYCOPG2_NAME=$(hatch run pip show psycopg2 || pip show psycopg2-binary | grep Name | cut -d " " -f 2) if [[ "$PSYCOPG2_NAME" != "$PSYCOPG2_EXPECTED_NAME" ]]; then @@ -138,7 +138,7 @@ jobs: - name: "Test psycopg2 name - override" run: | - pip install --upgrade --force-reinstall . + hatch env prune PSYCOPG2_NAME=$(hatch run pip show psycopg2 || pip show psycopg2-binary | grep Name | cut -d " " -f 2) if [[ "$PSYCOPG2_NAME" != "$PSYCOPG2_EXPECTED_NAME" ]]; then