From 7961678c22410c90860f9f98de377a927454539c Mon Sep 17 00:00:00 2001 From: Michelle Ark Date: Thu, 18 Jul 2024 14:57:24 -0400 Subject: [PATCH] install & check source distributions before wheels --- .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 a15dbbe1e3d..e9eafd3d705 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -218,6 +218,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 @@ -229,12 +238,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