-
Notifications
You must be signed in to change notification settings - Fork 947
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into singleaxis_tracking_wslope
- Loading branch information
Showing
122 changed files
with
63,983 additions
and
22,591 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
parameters: | ||
name: '' | ||
vmImage: '' | ||
|
||
jobs: | ||
- job: ${{ parameters.name }} | ||
pool: | ||
vmImage: ${{ parameters.vmImage }} | ||
strategy: | ||
matrix: | ||
Python35: | ||
python.version: '35' | ||
Python35-min: | ||
python.version: '35' | ||
suffix: '-min' | ||
Python36: | ||
python.version: '36' | ||
coverage: true | ||
Python37: | ||
python.version: '37' | ||
Python38: | ||
python.version: '38' | ||
|
||
steps: | ||
- bash: echo "##vso[task.prependpath]/usr/share/miniconda/bin" | ||
displayName: Add conda to PATH | ||
- script: conda env create --quiet --file ci/requirements-py$(python.version)$(suffix).yml | ||
displayName: Create Anaconda environment | ||
- script: | | ||
source activate test_env | ||
pip install pytest-azurepipelines | ||
pip install -e . | ||
displayName: 'pip dependencies' | ||
- script: | | ||
source activate test_env | ||
conda list | ||
displayName: 'List installed dependencies' | ||
- script: | | ||
source activate test_env | ||
export NREL_API_KEY=$(nrelApiKey) | ||
pytest pvlib --remote-data --junitxml=junit/test-results.xml --cov --cov-report=xml --cov-report=html | ||
displayName: 'pytest' | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFiles: '**/test-results.xml' | ||
testRunTitle: 'Linux $(python.version)' | ||
- task: PublishCodeCoverageResults@1 | ||
inputs: | ||
codeCoverageTool: Cobertura | ||
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml' | ||
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov' | ||
condition: eq(variables['coverage'], true) | ||
- script: | | ||
bash <(curl https://codecov.io/bash) -t bbc2bdbe-5e67-4fef-9cb7-f52fe0b703a8 -f coverage.xml -F adder -F subtractor -F conda | ||
displayName: 'codecov' | ||
condition: eq(variables['coverage'], true) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
parameters: | ||
name: '' | ||
vmImage: '' | ||
|
||
jobs: | ||
- job: ${{ parameters.name }} | ||
pool: | ||
vmImage: ${{ parameters.vmImage }} | ||
strategy: | ||
matrix: | ||
Python35-windows: | ||
python.version: '35' | ||
Python36-windows: | ||
python.version: '36' | ||
Python37-windows: | ||
python.version: '37' | ||
Python38-windows: | ||
python.version: '38' | ||
|
||
steps: | ||
- powershell: Write-Host "##vso[task.prependpath]$env:CONDA\Scripts" | ||
displayName: Add conda to PATH | ||
- script: conda env create --quiet --file ci/requirements-py$(python.version).yml | ||
displayName: Create Anaconda environment | ||
- script: | | ||
call activate test_env | ||
pip install pytest-azurepipelines | ||
pip install -e . | ||
displayName: 'pip dependencies' | ||
- script: | | ||
call activate test_env | ||
conda list | ||
displayName: 'List installed dependencies' | ||
- script: | | ||
call activate test_env | ||
pytest pvlib --junitxml=junit/test-results.xml | ||
displayName: 'pytest' | ||
- task: PublishTestResults@2 | ||
inputs: | ||
testResultsFiles: '**/test-results.xml' | ||
testRunTitle: 'Windows $(python.version)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
parameters: | ||
name: '' | ||
vmImage: '' | ||
|
||
jobs: | ||
- job: ${{ parameters.name }} | ||
pool: | ||
vmImage: ${{ parameters.vmImage }} | ||
strategy: | ||
matrix: | ||
Python35: | ||
python.version: '3.5' | ||
Python36: | ||
python.version: '3.6' | ||
Python37: | ||
python.version: '3.7' | ||
Python38: | ||
python.version: '3.8' | ||
|
||
steps: | ||
- task: UsePythonVersion@0 | ||
inputs: | ||
versionSpec: '$(python.version)' | ||
|
||
- script: | | ||
pip install pytest pytest-cov pytest-mock pytest-timeout pytest-azurepipelines pytest-rerunfailures pytest-remotedata | ||
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' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.