2020 displayName: 'Install dependencies'
2121
2222 - script : |
23- pytest -vvv - -flake8 -m flake8 --junitxml=flake8_result.xml threaded
23+ pytest --flake8 -m flake8 --junitxml=flake8_result.xml threaded
2424 displayName: 'PEP8'
2525
2626 - task : PublishTestResults@2
7474 python -m pip install --upgrade pip
7575 pip install -U setuptools
7676 pip install -r requirements.txt
77- pip install -U mypy
77+ pip install -U " mypy>=0.700"
7878 displayName: 'Install dependencies'
7979
8080 - script : |
@@ -98,66 +98,66 @@ jobs:
9898 - template : .azure_pipelines/run_tests.yml
9999 parameters : {name: 'Python_37', python: '3.7', architecture: 'x64', kind: 'native'}
100100
101- # - template: .azure_pipelines/run_tests.yml
102- # parameters: {name: 'Python_36', python: '3.6', architecture: 'x64', kind: 'cython'}
103- # - template: .azure_pipelines/run_tests.yml
104- # parameters: {name: 'Python_36', python: '3.6', architecture: 'x86', kind: 'cython'}
105- # - template: .azure_pipelines/run_tests.yml
106- # parameters: {name: 'Python_37', python: '3.7', architecture: 'x64', kind: 'cython'}
107- # - template: .azure_pipelines/run_tests.yml
108- # parameters: {name: 'Python_37', python: '3.7', architecture: 'x86', kind: 'cython'}
109-
110-
111- # - job: 'Build_and_deploy'
112- # dependsOn:
113- # - Python_36_x64_native
114- # - Python_37_x64_native
115- #
116- # # - Python_36_x64_cython
117- # # - Python_36_x86_cython
118- # # - Python_37_x64_cython
119- # # - Python_37_x86_cython
120- # condition: and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
121- # pool:
122- # vmIMage: 'VS2017-Win2016'
123- # strategy:
124- # maxParallel: 6
125- # matrix:
126- # Python36_x64:
127- # python.version: '3.6'
128- # python.architecture: 'x64'
129- # Python36_x86:
130- # python.version: '3.6'
131- # python.architecture: 'x86'
132- # Python37_x64:
133- # python.version: '3.7'
134- # python.architecture: 'x64'
135- # Python37_x86:
136- # python.version: '3.7'
137- # python.architecture: 'x86'
138- #
139- # steps:
140- # - task: UsePythonVersion@0
141- # inputs:
142- # versionSpec: '$(python.version)'
143- # architecture: '$(python.architecture)'
144- #
145- # - script: |
146- # python -m pip install --upgrade pip
147- # pip install -U setuptools
148- # pip install -r build_requirements.txt
149- # displayName: 'Install dependencies'
150- #
151- # - script: |
152- # python setup.py bdist_wheel
153- # displayName: 'Build'
154- #
155- # - task: TwineAuthenticate@0
156- # displayName: 'Twine Authenticate '
157- # inputs:
158- # externalFeeds: PyPI
159- #
160- # - script: |
161- # pip install -U twine
162- # twine upload -r PyPI --config-file $(PYPIRC_PATH) dist/threaded-* --skip-existing
163- # displayName: 'Deploy'
101+ - template : .azure_pipelines/run_tests.yml
102+ parameters : {name: 'Python_36', python: '3.6', architecture: 'x64', kind: 'cython'}
103+ - template : .azure_pipelines/run_tests.yml
104+ parameters : {name: 'Python_36', python: '3.6', architecture: 'x86', kind: 'cython'}
105+ - template : .azure_pipelines/run_tests.yml
106+ parameters : {name: 'Python_37', python: '3.7', architecture: 'x64', kind: 'cython'}
107+ - template : .azure_pipelines/run_tests.yml
108+ parameters : {name: 'Python_37', python: '3.7', architecture: 'x86', kind: 'cython'}
109+
110+
111+ - job : ' Build_and_deploy'
112+ dependsOn :
113+ - Python_36_x64_native
114+ - Python_37_x64_native
115+
116+ - Python_36_x64_cython
117+ - Python_36_x86_cython
118+ - Python_37_x64_cython
119+ - Python_37_x86_cython
120+ condition : and(succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/'))
121+ pool :
122+ vmIMage : ' VS2017-Win2016'
123+ strategy :
124+ maxParallel : 6
125+ matrix :
126+ Python36_x64 :
127+ python.version : ' 3.6'
128+ python.architecture : ' x64'
129+ Python36_x86 :
130+ python.version : ' 3.6'
131+ python.architecture : ' x86'
132+ Python37_x64 :
133+ python.version : ' 3.7'
134+ python.architecture : ' x64'
135+ Python37_x86 :
136+ python.version : ' 3.7'
137+ python.architecture : ' x86'
138+
139+ steps :
140+ - task : UsePythonVersion@0
141+ inputs :
142+ versionSpec : ' $(python.version)'
143+ architecture : ' $(python.architecture)'
144+
145+ - script : |
146+ python -m pip install --upgrade pip
147+ pip install -U setuptools
148+ pip install -r build_requirements.txt
149+ displayName: 'Install dependencies'
150+
151+ - script : |
152+ python setup.py bdist_wheel
153+ displayName: 'Build'
154+
155+ - task : TwineAuthenticate@0
156+ displayName : ' Twine Authenticate '
157+ inputs :
158+ externalFeeds : PyPI
159+
160+ - script : |
161+ pip install -U twine
162+ twine upload -r PyPI --config-file $(PYPIRC_PATH) dist/threaded-* --skip-existing
163+ displayName: 'Deploy'
0 commit comments