Skip to content

Commit 16cc0d4

Browse files
authored
add bare environment CI tests (#790)
* add bare linux test * fix test directory * whatsnew * moar pytest * what merge conflict?
1 parent de8f2b0 commit 16cc0d4

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

azure-pipelines.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,43 @@ trigger:
66

77
jobs:
88

9+
- job: 'Test_bare_linux'
10+
11+
pool:
12+
vmImage: 'ubuntu-16.04'
13+
strategy:
14+
matrix:
15+
Python35:
16+
python.version: '3.5'
17+
Python36:
18+
python.version: '3.6'
19+
Python37:
20+
python.version: '3.7'
21+
22+
steps:
23+
- task: UsePythonVersion@0
24+
inputs:
25+
versionSpec: '$(python.version)'
26+
27+
- script: |
28+
pip install pytest pytest-cov pytest-mock pytest-timeout pytest-azurepipelines
29+
pip install -e .
30+
pytest pvlib --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
31+
displayName: 'Test with pytest'
32+
33+
- task: PublishTestResults@2
34+
condition: succeededOrFailed()
35+
inputs:
36+
testResultsFiles: '**/test-*.xml'
37+
testRunTitle: 'Publish test results for Python $(python.version)'
38+
39+
- task: PublishCodeCoverageResults@1
40+
inputs:
41+
codeCoverageTool: Cobertura
42+
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
43+
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'
44+
45+
946
- job: 'Test_conda_linux'
1047

1148
pool:

docs/sphinx/source/whatsnew/v0.7.0.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ Testing
129129
in NSRDB (:issue:`733`)
130130
* Added tests for methods in bifacial.py.
131131
* Added tests for changes to cell temperature models.
132+
* Add tests configuration for bare python environment (no conda).
133+
(:issue:`727`)
132134
* Added tests for changes to IAM models.
133135
* Added test for `ModelChain.infer_aoi_model`.
134136

0 commit comments

Comments
 (0)