diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e81111e233..6a23126816 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -6,6 +6,43 @@ trigger: jobs: +- job: 'Test_bare_linux' + + pool: + vmImage: 'ubuntu-16.04' + 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 --junitxml=junit/test-results.xml --cov=com --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: 'Test_conda_linux' pool: diff --git a/docs/sphinx/source/whatsnew/v0.7.0.rst b/docs/sphinx/source/whatsnew/v0.7.0.rst index 5a90f11e64..2b65b17a9e 100644 --- a/docs/sphinx/source/whatsnew/v0.7.0.rst +++ b/docs/sphinx/source/whatsnew/v0.7.0.rst @@ -129,6 +129,8 @@ Testing in NSRDB (:issue:`733`) * Added tests for methods in bifacial.py. * Added tests for changes to cell temperature models. +* Add tests configuration for bare python environment (no conda). + (:issue:`727`) * Added tests for changes to IAM models. * Added test for `ModelChain.infer_aoi_model`.