Allow for forcing a version during test

This commit is contained in:
Josh W 2021-03-25 15:46:43 -04:00
parent 7466fbb205
commit 8545c5e6da

View file

@ -2,9 +2,13 @@ name: Upload to Test PyPI
on: on:
workflow_dispatch: workflow_dispatch:
inputs:
overrideVersion:
description: Manually force a version
env: env:
CIBW_BUILD_VERBOSITY: 1 CIBW_BUILD_VERBOSITY: 1
SETUPTOOLS_SCM_PRETEND_VERSION: ${{ github.event.inputs.overrideVersion }}
jobs: jobs:
make_sdist: make_sdist:
@ -76,11 +80,12 @@ jobs:
uses: joerick/cibuildwheel@v1.10.0 uses: joerick/cibuildwheel@v1.10.0
env: env:
CIBW_BUILD: cp${{ steps.pythonversion.outputs.value }}-${{ matrix.platform_id }} 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 - name: Upload wheels to artifact container
uses: actions/upload-artifact@v2 uses: actions/upload-artifact@v2
with: with:
path: wheelhouse/*.whl path: wheelhouse/*.whl
upload_all: upload_all:
needs: [build_wheels, make_sdist] needs: [build_wheels, make_sdist]
runs-on: ubuntu-latest runs-on: ubuntu-latest