File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+
2+ trigger :
3+ - master
4+
5+ pool :
6+ vmImage : ' ubuntu-latest'
7+ strategy :
8+ matrix :
9+ Python35 :
10+ python.version : ' 3.5'
11+ Python36 :
12+ python.version : ' 3.6'
13+ Python37 :
14+ python.version : ' 3.7'
15+ Python39 :
16+ python.version : ' 3.9'
17+
18+ steps :
19+ - task : UsePythonVersion@0
20+ inputs :
21+ versionSpec : ' $(python.version)'
22+ displayName : ' Use Python $(python.version)'
23+
24+ - script : |
25+ python -m pip install --upgrade pip
26+ pip install coverage
27+ displayName : ' Install coverage'
28+
29+ - script : |
30+ coverage run tests.py
31+ displayName : ' Run tests'
32+
33+ - script : |
34+ bash <(curl -s https://codecov.io/bash)
35+ displayName : ' Upload to codecov.io'
36+ - name : " Upload coverage to Codecov"
37+ uses : codecov/codecov-action@v1
38+ with :
39+ fail_ci_if_error : true
Original file line number Diff line number Diff line change @@ -13,6 +13,8 @@ strategy:
1313 python.version : ' 3.6'
1414 Python37 :
1515 python.version : ' 3.7'
16+ Python39 :
17+ python.version : ' 3.9'
1618
1719steps :
1820- task : UsePythonVersion@0
You can’t perform that action at this time.
0 commit comments