From de8c1e72f6ee0a55bbe061d05faea7a7c03591c8 Mon Sep 17 00:00:00 2001 From: Cameron Stark Date: Tue, 29 Oct 2019 16:04:06 -0600 Subject: [PATCH] add macOS 10.14 Mojave to Azure Pipelines CI --- azure-pipelines.yml | 39 ++++++++++++++++++++++++++++++++++++++- 1 file changed, 38 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 6a23126816..a626e1c11b 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -134,6 +134,43 @@ jobs: testRunTitle: 'Windows $(python.version)' +- job: 'Test_bare_macOS_Mojave' + + pool: + vmImage: 'macOS-10.14' + strategy: + matrix: + Python35: + python.version: '3.5' + Python36: + python.version: '3.6' + Python37: + python.version: '3.7' + + steps: + - task: UsePythonVersion@0 + inputs: + versionSpec: '$(python.version)' + + - script: | + pip install pytest pytest-cov pytest-mock pytest-timeout pytest-azurepipelines + pip install -e . + pytest pvlib/test --junitxml=junit/test-results.xml --cov=pvlib --cov-report=xml --cov-report=html + displayName: 'Test with pytest' + + - task: PublishTestResults@2 + condition: succeededOrFailed() + inputs: + testResultsFiles: '**/test-*.xml' + testRunTitle: 'Publish test results for Python $(python.version)' + + - task: PublishCodeCoverageResults@1 + inputs: + codeCoverageTool: Cobertura + summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml' + reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov' + + - job: 'Publish' dependsOn: 'Test_conda_linux' pool: @@ -146,4 +183,4 @@ jobs: architecture: 'x64' - script: python setup.py sdist - displayName: 'Build sdist' \ No newline at end of file + displayName: 'Build sdist'