From 8545c5e6da51355e4b45c8dd2c67a5e87b8459d0 Mon Sep 17 00:00:00 2001 From: Josh Washburne Date: Thu, 25 Mar 2021 15:46:43 -0400 Subject: [PATCH] Allow for forcing a version during test --- .github/workflows/build-test-pypi.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-test-pypi.yml b/.github/workflows/build-test-pypi.yml index 80141b8..5577fe8 100644 --- a/.github/workflows/build-test-pypi.yml +++ b/.github/workflows/build-test-pypi.yml @@ -2,9 +2,13 @@ name: Upload to Test PyPI on: workflow_dispatch: + inputs: + overrideVersion: + description: Manually force a version env: CIBW_BUILD_VERBOSITY: 1 + SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.overrideVersion }} jobs: make_sdist: @@ -76,11 +80,12 @@ jobs: uses: joerick/cibuildwheel@v1.10.0 env: CIBW_BUILD: cp${{ steps.pythonversion.outputs.value }}-${{ matrix.platform_id }} + CIBW_ENVIRONMENT: "SETUPTOOLS_SCM_PRETEND_VERSION=${{ github.event.inputs.overrideVersion }}" - name: Upload wheels to artifact container uses: actions/upload-artifact@v2 with: path: wheelhouse/*.whl - + upload_all: needs: [build_wheels, make_sdist] runs-on: ubuntu-latest