11language : python
22os : linux
3- dist : xenial
4- sudo : true
3+ dist : bionic
54
65install :
76 - &upgrade_python_toolset pip install --upgrade pip setuptools wheel
8- - &install_test_deps pip install --upgrade asynctest mock pytest pytest-mock pytest-asyncio pytest-sugar
7+ - &install_test_deps pip install --upgrade asynctest mock pytest pytest-mock pytest-asyncio pytest-sugar coverage[toml]>=5.0
98 - &install_deps pip install -r CI_REQUIREMENTS.txt
109 - pip install --upgrade pytest-cov coveralls
1110
@@ -21,24 +20,19 @@ _python:
2120 python : " 3.8"
2221
2322_helpers :
24- - &build_package python setup.py bdist_wheel
23+ - &build_package python setup.py bdist_wheel clean
2524
2625 - &static_analysis
2726 stage : Static analysis
2827 << : *python37
29- after_success : skip
3028
3129 - &code_style_check
3230 stage : Code style check
3331 << : *python37
34- after_success : skip
3532
3633script :
3734 - python setup.py develop -v
38- - py.test --cov-config .coveragerc --cov=exec_helpers test
39-
40- after_success :
41- - coveralls
35+ - py.test --cov=exec_helpers
4236
4337jobs :
4438 include :
4943 - *install_deps
5044 - pip install --upgrade "pylint >= 2.3" isort[pyproject,requirements]
5145 script :
52- - python setup.py --version
46+ - python setup.py --version clean
5347 - pylint exec_helpers
5448 - << : *static_analysis
5549 name : " Bandit"
6559 - *install_deps
6660 - pip install --upgrade "mypy >= 0.720"
6761 script :
68- - python setup.py --version
62+ - python setup.py --version clean
6963 - mypy --strict exec_helpers
7064 - << : *static_analysis
7165 name : " PEP8"
@@ -92,10 +86,16 @@ jobs:
9286
9387 - stage : test
9488 << : *python36
89+ after_success :
90+ - coveralls
9591 - stage : test
9692 << : *python37
93+ after_success :
94+ - coveralls
9795 - stage : test
9896 << : *python38
97+ after_success :
98+ - coveralls
9999
100100 - stage : deploy
101101 # This prevents job from appearing in test plan unless commit is tagged:
@@ -108,20 +108,20 @@ jobs:
108108 install :
109109 - *upgrade_python_toolset
110110 - *install_deps
111+ - pip install -U --upgrade-strategy=eager --no-cache-dir twine
111112 before_deploy :
112- - *build_package
113- script : python setup.py bdist_wheel
113+ - pip install -U wheel
114+ script : *build_package
114115 deploy :
115116 - provider : pypi
116117 # `skip_cleanup: true` is required to preserve binary wheels, built
117- # inside of manylinux1 docker container during `script` step above.
118118 skip_cleanup : true
119119 user : penguinolog
120120 password :
121121 secure : " maml4+SU/6NtRf7JIwWhVyXkesE9Gk5Umdo3txOjcrcvt84S3NlN/hFgdNclMUpJ3b+rOFEpiZOamtDKbP67uhlA6yJ364SxW5T3ZQJ8tjFFzMHcaM38HgGbgLR8AxK8fdZKRg9gVMnGofeiusB5aNsKmn9XnvESc8dNv0Umdmi83wXxm+DfVRXL8VTFgwsH3BxQy/Kdv6upRrXyNWkyoi8Zk8PkrFFDpFoW9WK1fRBqnvCw1Wt8nEAJah7y2b7vj52eM+MfT3IL+jpocZqOJQlFPdWkTonX7mAP9nB97kk4DMbm3ZqUw2Qr9pM0nKK9HhrXhsSSUGa1w95zmw9nbXLrpfnQ61Lyk9pGcVh60WbrVKstE/x9Lq3pqGsA/YKqsIZK3OAqRfBHNG9L7lekP05hXyDNHJXGoEyGQjVA/666S2ZCjM10XaaUmZ5P1kPGocCnEjv86dKdINTkFM6L0n4oIu1nyftBhVu9jz0xQaxute4LZNJiQtE6x8NX3WuSO68UhWjDqevYdRgW55Gp1OD4ilfA/SVNPpsHJfB2baue1fi9m8Rn3bWQSJoZ8twYHoIxEOAIXyMBhYnmldvsuUY6h5p+/hk6kpJAsTXZFjUSa/FPIH84QvDkNCoZxwInSkjEN1tj9PBep2vYcLMd92+g6udtin8FbYMZItiDl1M="
122122 on :
123123 tags : true
124- distributions : sdist bdist_wheel
124+ distributions : sdist
125125 skip_upload_docs : true
126126 skip_existing : true
127127
0 commit comments