From d0edcc5c8795ddafc602c7eb1dfe80ea422d70fb Mon Sep 17 00:00:00 2001 From: Venu Vardhan Reddy Tekula Date: Wed, 1 Sep 2021 20:15:20 +0530 Subject: [PATCH] Add twine-check to the CI workflow Sometimes changes can impact the ability to produce a distributable artifact. This commit adds a condition in the CI workflow to check if the distributions using twine. Signed-off-by: Venu Vardhan Reddy Tekula --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d93593b5..b7ae6cea 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -45,3 +45,21 @@ jobs: - name: Run Tests run: | python setup.py test + + twine-check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install setuptools wheel twine + - name: Build source distribution + run: python setup.py sdist bdist_wheel + - name: Check with Twine + working-directory: dist + run: twine check *