8000 make test_psm3.py robust to API overuse errors by CameronTStark · Pull Request #873 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

make test_psm3.py robust to API overuse errors #873

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 71 commits into from
Feb 10, 2020
Merged
Changes from 1 commit
Commits
Show all changes
71 commits
Select commit Hold shift + click to select a range
e81e941
use NREL_API_KEY environment variable when available
Jan 27, 2020
63c489d
remove try-except clause to ensure that azure env variable is used
Jan 27, 2020
3ef167e
set environment variable from Azure's secret variables
Jan 27, 2020
ecb8f79
Update azure-pipelines.yml for Azure Pipelines
CameronTStark Jan 27, 2020
0f13335
Update azure-pipelines.yml for Azure Pipelines within pytest call
CameronTStark Jan 27, 2020
31896ca
Update azure-pipelines.yml for Azure Pipelines echo only
CameronTStark Jan 27, 2020
5c69773
Update azure-pipelines.yml for Azure Pipelines with python
CameronTStark Jan 27, 2020
c348fad
Update azure-pipelines.yml for Azure Pipelines all os.environ
CameronTStark Jan 27, 2020
6a48631
Update azure-pipelines.yml for Azure Pipelines export variable
CameronTStark Jan 27, 2020
c56f8ea
export Azure secret variable into environment to access from python
Jan 27, 2020
60323df
Update azure-pipelines.yml for Azure Pipelines fix displayName
CameronTStark Jan 27, 2020
83e35d3
Update azure-pipelines.yml for Azure Pipelines psm3 test only
CameronTStark Jan 27, 2020
ae825be
Update azure-pipelines.yml for Azure Pipelines for real this time
CameronTStark Jan 27, 2020
5ce5f8f
Update azure-pipelines.yml for Azure Pipelines for really real this time
CameronTStark Jan 27, 2020
6d33c6c
Update azure-pipelines.yml for Azure Pipelines single failing test
CameronTStark Jan 27, 2020
2596c4f
Update azure-pipelines.yml for Azure Pipelines test_get_psm3_tmy
CameronTStark Jan 27, 2020
b16d036
Update azure-pipelines.yml for Azure Pipelines io_input
CameronTStark Jan 27, 2020
edb303c
Update azure-pipelines.yml for Azure Pipelines test_parse_psm3
CameronTStark Jan 27, 2020
8a8013c
Update azure-pipelines.yml for Azure Pipelines test_read_psm3
CameronTStark Jan 27, 2020
aacb1d6
Update azure-pipelines.yml for Azure Pipelines all test_psm3.py tests
CameronTStark Jan 27, 2020
1a7ac11
Update azure-pipelines.yml for Azure Pipelines all python versions
CameronTStark Jan 27, 2020
bc37f2f
use NREL_API_KEY environment variable when available
Jan 27, 2020
8736f62
remove try-except clause to ensure that azure env variable is used
Jan 27, 2020
4f11bb5
set environment variable from Azure's secret variables
Jan 27, 2020
f7620b6
Update azure-pipelines.yml for Azure Pipelines
CameronTStark Jan 27, 2020
937f050
Update azure-pipelines.yml for Azure Pipelines within pytest call
CameronTStark Jan 27, 2020
27b370c
Update azure-pipelines.yml for Azure Pipelines echo only
CameronTStark Jan 27, 2020
6068d83
Update azure-pipelines.yml for Azure Pipelines with python
CameronTStark Jan 27, 2020
672ec66
Update azure-pipelines.yml for Azure Pipelines all os.environ
CameronTStark Jan 27, 2020
572a861
Update azure-pipelines.yml for Azure Pipelines export variable
CameronTStark Jan 27, 2020
cea3eda
export Azure secret variable into environment to access from python
Jan 27, 2020
2c8370d
temporary test_blah function and get_psm3 delayer
Jan 29, 2020
1ef3af6
improve delay_get_psm3(), replace get_psm3() calls
Jan 29, 2020
e764bfa
set DEMO_KEY to environment variable if available
Jan 29, 2020
78ea6a6
update azure-pipelines basic script for testing
Jan 29, 2020
b57732a
Merge branch 'nrel_api' of github.com:CameronTStark/pvlib-python into…
Jan 29, 2020
7a1b5a1
match azure secret variable
Jan 29, 2020
5380567
return to full suite of testing on azure
Jan 29, 2020
ea8acd5
return test_psm3() specific pytest call to general
Jan 29, 2020
4f59d27
add description to whatsnew
Jan 29, 2020
51965e2
formatting fix
Jan 29, 2020
13045fb
logger module implementation
Jan 29, 2020
6358642
more formatting
Jan 29, 2020
efe0f1c
change while loop to for loop
Jan 29, 2020
65c2d75
use warnings instead of logging
Jan 29, 2020
b9981c4
fixturize DEMO_KEY
Jan 30, 2020
5d7c587
implement use of pytest-rerunfailures instead of custom loop
Jan 30, 2020
0963441
parametrize error tests into a signle test
Jan 30, 2020
ef56cce
fix windows environment import of NREL key
Jan 30, 2020
09b0af6
test to echo environment variable of NREL key
Jan 30, 2020
8db513d
fix windows secret variable setting
Jan 30, 2020
89c5af3
add pytest-rerunfailures to ci requirements yml
Feb 3, 2020
9aeabf8
use secret.nrelApiKey syntax
Feb 4, 2020
6646a2e
test new secret variable
Feb 4, 2020
075de57
try secret.api_key sy 8000 ntax
Feb 4, 2020
15a980d
std syntax only psm3
Feb 4, 2020
e49cba1
try to print other variables that arent secrets
Feb 4, 2020
76c9a5b
confirm personal repo still works
Feb 4, 2020
4468bcb
bump
Feb 4, 2020
9927ef5
try all python versions
Feb 4, 2020
e1b0959
try everything
Feb 4, 2020
3237f8e
install pytest-rerunrailures in Azure
Feb 4, 2020
5c68358
configure conda_35 tests to pull pytest_rerunfailures from pip instea…
Feb 5, 2020
b8d536c
add note for pytest-rerunfailures for conda_35
Feb 5, 2020
72e3880
change fixture from DEMO_KEY to nrel_api_key
Feb 5, 2020
6cdc186
remove debug variable echo commands
Feb 5, 2020
be8eca0
move pytest-rerunfailures to pip install
Feb 5, 2020
33fe42e
improve docstrings
Feb 6, 2020
6d9230e
use verbose name for caught error
Feb 6, 2020
07cbcc7
Merge branch 'master' into nrel_api
CameronTStark Feb 6, 2020
cdff1af
readd leap year test
Feb 10, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update azure-pipelines.yml for Azure Pipelines within pytest call
  • Loading branch information
CameronTStark authored and Cameron Stark committed Jan 29, 2020
commit 937f05056e7f738a1670b8700d3458f5a00ab5d4
9 changes: 6 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@

trigger:
- master
variables:
NREL_API_KEY: $(NREL_API_KEY) # secret variable mapping from Pipeline to test env


jobs:

Expand All @@ -26,11 +25,15 @@ jobs:
versionSpec: '$(python.version)'

- script: |
export NREL_API_KEY=$(NREL_API_KEY)
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'

env:
NREL_API_KEY: $(NREL_API_KEY)

- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
Expand All @@ -43,7 +46,7 @@ jobs:
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
reportDirectory: '$(System.DefaultWorkingDirectory)/**/htmlcov'


# - job: 'Test_conda_linux'

# pool:
Expand Down
0