From 3fbc0749491f40d34014336457753b140e1fb1ee Mon Sep 17 00:00:00 2001 From: leahwicz <60146280+leahwicz@users.noreply.github.com> Date: Fri, 9 Aug 2024 17:08:00 -0400 Subject: [PATCH] Isolating distribution testing (#1161) * Splitting up distribution testing * Adding back in if statement * Adding changie file * Fixing whitespace --- .../Under the Hood-20240806-215935.yaml | 6 ++++++ .github/workflows/main.yml | 17 +++++------------ 2 files changed, 11 insertions(+), 12 deletions(-) create mode 100644 .changes/unreleased/Under the Hood-20240806-215935.yaml diff --git a/.changes/unreleased/Under the Hood-20240806-215935.yaml b/.changes/unreleased/Under the Hood-20240806-215935.yaml new file mode 100644 index 000000000..660918350 --- /dev/null +++ b/.changes/unreleased/Under the Hood-20240806-215935.yaml @@ -0,0 +1,6 @@ +kind: Under the Hood +body: Isolating distribution testing +time: 2024-08-06T21:59:35.284641-04:00 +custom: + Author: leahwicz + Issue: "1130" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 67b8d4e57..95ce18033 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -163,7 +163,7 @@ jobs: overwrite: true test-build: - name: verify packages / python ${{ matrix.python-version }} / ${{ matrix.os }} + name: verify packages / python ${{ matrix.python-version }} / ${{ matrix.os }} / ${{ matrix.dist-type }} if: needs.build.outputs.is_alpha == 0 @@ -176,6 +176,7 @@ jobs: matrix: os: [ubuntu-latest, macos-12, windows-latest] python-version: ['3.8', '3.9', '3.10', '3.11', '3.12'] + dist-type: ['whl', 'gz'] steps: - name: Set up Python ${{ matrix.python-version }} @@ -197,18 +198,10 @@ jobs: - name: Show distributions run: ls -lh dist/ - - name: Install wheel distributions + - name: Install ${{ matrix.dist-type }} distributions run: | - find ./dist/*.whl -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/ + find ./dist/*.${{ matrix.dist-type }} -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/ - - name: Check wheel distributions - run: | - python -c "import dbt.adapters.snowflake" - - - name: Install source distributions - run: | - find ./dist/*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/ - - - name: Check source distributions + - name: Check ${{ matrix.dist-type }} distributions run: | python -c "import dbt.adapters.snowflake"