From a7ef54b4e4fb75f12c4f740904956bd763fd0ff4 Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Thu, 18 Jul 2024 15:31:38 -0400 Subject: [PATCH] install & check source distributions before wheels (#10466) --- .github/workflows/main.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index aeca00b985d..5564ba1863f 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -226,6 +226,15 @@ jobs: run: | twine check dist/* + - name: Install source distributions + # ignore dbt-1.0.0, which intentionally raises an error when installed from source + run: | + find ./dist/*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/ + + - name: Check source distributions + run: | + dbt --version + - name: Check wheel contents run: | check-wheel-contents dist/*.whl --ignore W007,W008 @@ -237,12 +246,3 @@ jobs: - name: Check wheel distributions run: | dbt --version - - - name: Install source distributions - # ignore dbt-1.0.0, which intentionally raises an error when installed from source - run: | - find ./dist/*.gz -maxdepth 1 -type f | xargs python -m pip install --force-reinstall --find-links=dist/ - - - name: Check source distributions - run: | - dbt --version