Skip to content

Commit 91e6ade

Browse files
committed
assure the upload will work
1 parent 333125b commit 91e6ade

File tree

2 files changed

+21
-2
lines changed

2 files changed

+21
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
branches: [ master ]
1111

1212
jobs:
13-
build:
13+
testCode:
1414

1515
runs-on: ubuntu-latest
1616
strategy:
@@ -41,3 +41,22 @@ jobs:
4141
- name: Test with pytest
4242
run: |
4343
pytest
44+
45+
testUploadability:
46+
47+
runs-on: ubuntu-latest
48+
49+
steps:
50+
- uses: actions/checkout@v2
51+
- name: Set up Python
52+
uses: actions/setup-python@v2
53+
with:
54+
python-version: '3.x'
55+
- name: Install dependencies
56+
run: |
57+
python -m pip install --upgrade pip
58+
pip install setuptools wheel twine
59+
- name: Build and check
60+
run: |
61+
python setup.py sdist bdist_wheel
62+
twine check dist/*

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
from mypy_ls import _version
44

55
if __name__ == "__main__":
6-
setup(version=_version.__version__)
6+
setup(version=_version.__version__, long_description_content_type="text/x-rst")

0 commit comments

Comments
 (0)