-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
43 lines (32 loc) · 1017 Bytes
/
azure-pipelines.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
32
33
34
35
36
37
38
39
40
41
42
43
trigger:
- main
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
displayName: 'Use Python 3.9'
- task: NodeTool@0
inputs:
versionSpec: '12.x'
checkLatest: true
- script: python -m pip install --upgrade pip poetry
displayName: 'Install poetry'
- script: poetry install -v
displayName: 'Install dependencies'
- script: npm install -g [email protected]
displayName: 'Install pyright'
- script: make lint
displayName: 'Lint'
- script: make test
displayName: 'Test'
- script: poetry run coverage xml && poetry run coverage html
displayName: 'Generating coverage files'
- task: PublishCodeCoverageResults@1
inputs:
codeCoverageTool: Cobertura
summaryFileLocation: '$(System.DefaultWorkingDirectory)/**/coverage.xml'
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/test-*.xml'
testRunTitle: 'Publish test results for Python $(python.version)'