From 9923e096bbe3b3070c1e846c8654e99a61d54006 Mon Sep 17 00:00:00 2001 From: Vytautas Liuolia Date: Fri, 30 Aug 2024 06:16:59 +0200 Subject: [PATCH] chore: test (WOULD FAIL) if passing `-r` works --- .github/workflows/cibuildwheel.yaml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/cibuildwheel.yaml b/.github/workflows/cibuildwheel.yaml index 8c1fd9535..c17eadada 100644 --- a/.github/workflows/cibuildwheel.yaml +++ b/.github/workflows/cibuildwheel.yaml @@ -36,6 +36,10 @@ jobs: pip install --upgrade build python -m build --sdist + - name: Check built artifacts + run: | + tools/check_dist.py ${{ github.event_name != 'release' && format('-r {0}', github.ref) || '' }} + - name: Upload artifacts uses: actions/upload-artifact@v4 with: @@ -140,7 +144,7 @@ jobs: - name: Check collected artifacts run: | - tools/check_dist.py -d dist/ ${{ github.event_name == 'release' && format('-r {0}', github.ref) || '' }} + tools/check_dist.py ${{ github.event_name == 'release' && format('-r {0}', github.ref) || '' }} - name: Upload sdist to release uses: AButler/upload-release-assets@v2.0 @@ -190,7 +194,7 @@ jobs: - name: Check collected artifacts run: | - tools/check_dist.py -d dist/ ${{ github.event_name == 'release' && format('-r {0}', github.ref) || '' }} + tools/check_dist.py ${{ github.event_name == 'release' && format('-r {0}', github.ref) || '' }} - name: Publish wheels to TestPyPI uses: pypa/gh-action-pypi-publish@release/v1