Skip to content

Commit b0e39a6

Browse files
authored
add macOS 10.14 Mojave to Azure Pipelines CI (#812)
1 parent a349bea commit b0e39a6

File tree

1 file changed

+38
-1
lines changed

1 file changed

+38
-1
lines changed

azure-pipelines.yml

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,43 @@ jobs:
134134
testRunTitle: 'Windows $(python.version)'
135135

136136

137+
- job: 'Test_bare_macOS_Mojave'
138+
139+
pool:
140+
vmImage: 'macOS-10.14'
141+
strategy:
142+
matrix:
143+
Python35:
144+
python.version: '3.5'
145+
Python36:
146+
python.version: '3.6'
147+
Python37:
148+
python.version: '3.7'
149+
150+
steps:
151+
- task: UsePythonVersion@0
152+
inputs:
153+
versionSpec: '$(python.version)'
154+
155+
- script: |
156+
pip install pytest pytest-cov pytest-mock pytest-timeout pytest-azurepipelines
157+
pip install -e .
158+
pytest pvlib/test --junitxml=junit/test-results.xml --cov=pvlib --cov-report=xml --cov-report=html
159+
displayName: 'Test with pytest'
160+
161+
- task: PublishTestResults@2
162+
condition: succeededOrFailed()
163+
inputs:
164+
testResultsFiles: '**/test-*.xml'
165+
testRunTitle: 'Publish test results for Python $(python.version)'
166+
167+
- task: PublishCodeCoverageResults@1
168+
inputs:
169+
codeCoverageTool: Cobertura
170+
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
171+
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
172+
173+
137174
- job: 'Publish'
138175
dependsOn: 'Test_conda_linux'
139176
pool:
@@ -146,4 +183,4 @@ jobs:
146183
architecture: 'x64'
147184

148185
- script: python setup.py sdist
149-
displayName: 'Build sdist'
186+
displayName: 'Build sdist'

0 commit comments

Comments
 (0)