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 <venu@chaoss.community>
This commit is contained in:
committed by
Rushi Agrawal
parent
f9b52facd8
commit
d0edcc5c87
@@ -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 *
|
||||
|
||||
Reference in New Issue
Block a user