| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -83,6 +83,14 @@ jobs: | |||
| 83 | 83 | script: | |
| 84 | 84 | - pip3 install tox | |
| 85 | 85 | - tox -e py38 | |
| 86 | + - stage: test | ||
| 87 | + dist: bionic | ||
| 88 | + name: twine-check | ||
| 89 | + python: 3.8 | ||
| 90 | + script: | ||
| 91 | + - pip3 install tox wheel | ||
| 92 | + - python3 setup.py sdist bdist_wheel | ||
| 93 | + - tox -e twine-check | ||
| 86 | 94 | - stage: test | |
| 87 | 95 | dist: bionic | |
| 88 | 96 | name: coverage | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -130,8 +130,9 @@ passing tests are mandatory to get merge requests accepted. | |||
| 130 | 130 | ||
| 131 | 131 | We're currently in a restructing phase for the unit tests. If you're changing existing | |
| 132 | 132 | tests, feel free to keep the current format. Otherwise please write new tests with pytest and | |
| 133 | - using `responses<https://github.com/getsentry/responses>`_. An example for new tests can be found in | ||
| 134 | - tests/objects/test_runner.py | ||
| 133 | + using `responses | ||
| 134 | + <https://github.com/getsentry/responses/>`_. | ||
| 135 | + An example for new tests can be found in tests/objects/test_runner.py | ||
| 135 | 136 | ||
| 136 | 137 | You need to install ``tox`` to run unit tests and documentation builds locally: | |
| 137 | 138 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,6 +20,7 @@ def get_version(): | |||
| 20 | 20 | version=get_version(), | |
| 21 | 21 | description="Interact with GitLab API", | |
| 22 | 22 | long_description=readme, | |
| 23 | + long_description_content_type="text/x-rst", | ||
| 23 | 24 | author="Gauvain Pocentek", | |
| 24 | 25 | author_email="gauvain@pocentek.net", | |
| 25 | 26 | license="LGPLv3", | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -1,7 +1,7 @@ | |||
| 1 | 1 | [tox] | |
| 2 | 2 | minversion = 1.6 | |
| 3 | 3 | skipsdist = True | |
| 4 | - envlist = py38,py37,py36,pep8,black | ||
| 4 | + envlist = py38,py37,py36,pep8,black,twine-check | ||
| 5 | 5 | ||
| 6 | 6 | [testenv] | |
| 7 | 7 | passenv = GITLAB_IMAGE GITLAB_TAG | |
@@ -27,6 +27,14 @@ deps = -r{toxinidir}/requirements.txt | |||
| 27 | 27 | commands = | |
| 28 | 28 | black {posargs} gitlab tools/functional | |
| 29 | 29 | ||
| 30 | + [testenv:twine-check] | ||
| 31 | + basepython = python3 | ||
| 32 | + deps = -r{toxinidir}/requirements.txt | ||
| 33 | + -r{toxinidir}/test-requirements.txt | ||
| 34 | + twine | ||
| 35 | + commands = | ||
| 36 | + twine check dist/* | ||
| 37 | + | ||
| 30 | 38 | [testenv:venv] | |
| 31 | 39 | commands = {posargs} | |
| 32 | 40 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments