From d06f36674121fd71e7c022d5f4b6f25fa7d6acc6 Mon Sep 17 00:00:00 2001 From: Will Holmgren Date: Wed, 16 Oct 2019 14:33:21 -0700 Subject: [PATCH 1/5] add bare linux test --- azure-pipelines.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index e81111e233..22e1d56a13 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-azurepipelines + pip install -e . + pytest tests --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: From 3f3084586bceeda44c1aaca1647ffb1a2f64b640 Mon Sep 17 00:00:00 2001 From: Will Holmgren Date: Wed, 16 Oct 2019 14:37:03 -0700 Subject: [PATCH 2/5] fix test directory --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 22e1d56a13..c2b06dbb80 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -27,7 +27,7 @@ jobs: - script: | pip install pytest pytest-cov pytest-azurepipelines pip install -e . - pytest tests --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html + pytest pvlib --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html displayName: 'Test with pytest' - task: PublishTestResults@2 From 9dc049b18cfab01f56441ea684cbf6e977daad43 Mon Sep 17 00:00:00 2001 From: Will Holmgren Date: Wed, 16 Oct 2019 14:37:08 -0700 Subject: [PATCH 3/5] whatsnew --- docs/sphinx/source/whatsnew/v0.7.0.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/sphinx/source/whatsnew/v0.7.0.rst b/docs/sphinx/source/whatsnew/v0.7.0.rst index d358c88249..23e6d1e1af 100644 --- a/docs/sphinx/source/whatsnew/v0.7.0.rst +++ b/docs/sphinx/source/whatsnew/v0.7.0.rst @@ -113,6 +113,7 @@ Testing in NSRDB (:issue:`733`) * Added tests for methods in bifacial.py. * Added tests for changes to cell temperature models. +* Add tests for bare environment. (:issue:`727`) Documentation ~~~~~~~~~~~~~ From ff445bc76b4c22d0625eee68b8501fb3991f5cc5 Mon Sep 17 00:00:00 2001 From: Will Holmgren Date: Wed, 16 Oct 2019 14:43:11 -0700 Subject: [PATCH 4/5] moar pytest --- azure-pipelines.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index c2b06dbb80..6a23126816 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -25,7 +25,7 @@ jobs: versionSpec: '$(python.version)' - script: | - pip install pytest pytest-cov pytest-azurepipelines + 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' From 40c920bf369ce94dad18e8a068e6f2bd5f953903 Mon Sep 17 00:00:00 2001 From: Will Holmgren Date: Wed, 16 Oct 2019 14:55:14 -0700 Subject: [PATCH 5/5] what merge conflict? --- docs/sphinx/source/whatsnew/v0.7.0.rst | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docs/sphinx/source/whatsnew/v0.7.0.rst b/docs/sphinx/source/whatsnew/v0.7.0.rst index 23e6d1e1af..d25ec2b6e1 100644 --- a/docs/sphinx/source/whatsnew/v0.7.0.rst +++ b/docs/sphinx/source/whatsnew/v0.7.0.rst @@ -113,7 +113,8 @@ Testing in NSRDB (:issue:`733`) * Added tests for methods in bifacial.py. * Added tests for changes to cell temperature models. -* Add tests for bare environment. (:issue:`727`) +* Add tests configuration for bare python environment (no conda). + (:issue:`727`) Documentation ~~~~~~~~~~~~~