forked from lightkurve/lightkurve
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.azure-template.yml
31 lines (25 loc) · 1.03 KB
/
.azure-template.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '$(python.version)'
displayName: 'Use Python $(python.version)'
- script: |
python -m pip install --upgrade pip setuptools wheel
pip install numpy # celerite needs numpy to build, so we install it first
$(pip.command)
displayName: 'Install Lightkurve & dependencies'
- script: pytest $(pytest.options) --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html
displayName: 'Run pytest'
- script: bash <(curl https://codecov.io/bash)
displayName: 'Run codecov'
condition: eq(variables['Agent.JobName'], 'Python37_RemoteData')
- 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'