|
16 | 16 | SCIPY_VERSION: "1.1.0" |
17 | 17 | SKLEARN_VERSION: "0.22.2post1" |
18 | 18 | Python38: |
| 19 | + python.version: '3.8' |
| 20 | + NUMPY_VERSION: "1.16.5" |
| 21 | + SCIPY_VERSION: "1.1.0" |
| 22 | + SKLEARN_VERSION: "0.23.2" |
| 23 | + Python39: |
19 | 24 | python.version: '3.8' |
20 | 25 | SKLEARN_VERSION: "nightly" |
21 | 26 | variables: |
@@ -46,13 +51,17 @@ jobs: |
46 | 51 | |
47 | 52 | - script: | |
48 | 53 | set -xe |
49 | | - python -m pip install pytest pytest-azurepipelines |
| 54 | + python -m pip install pytest pytest-azurepipelines pytest-cov codecov |
50 | 55 | # run doctests in the documentation |
51 | 56 | # TODO: remove "|| .." once at least one doctest is added |
52 | 57 | python -m pytest doc/*rst doc/modules/*rst || echo "Ignoring exit status" |
53 | | - python -m pytest --durations 10 sklearn_extra |
| 58 | + python -m pytest --durations 10 --cov=sklearn_extra sklearn_extra |
54 | 59 | displayName: 'Test' |
55 | 60 |
|
| 61 | + - script: codecov -t $CODECOV_TOKEN || echo "codecov upload failed" |
| 62 | + displayName: 'Upload coverage report' |
| 63 | + env: |
| 64 | + CODECOV_TOKEN: $(CODECOV_TOKEN) |
56 | 65 |
|
57 | 66 | - job: 'macOS1014' |
58 | 67 | pool: |
@@ -100,10 +109,15 @@ jobs: |
100 | 109 | |
101 | 110 | - script: | |
102 | 111 | set -xe |
103 | | - python -m pip install pytest pytest-azurepipelines pytest |
104 | | - python -m pytest --durations 10 sklearn_extra |
| 112 | + python -m pip install pytest pytest-azurepipelines pytest pytest-cov codecov |
| 113 | + python -m pytest --durations 10 --cov=sklearn_extra sklearn_extra |
105 | 114 | displayName: 'Test' |
106 | 115 |
|
| 116 | + - script: codecov -t $CODECOV_TOKEN || echo "codecov upload failed" |
| 117 | + displayName: 'Upload coverage report' |
| 118 | + env: |
| 119 | + CODECOV_TOKEN: $(CODECOV_TOKEN) |
| 120 | + |
107 | 121 |
|
108 | 122 | - job: 'win2016' |
109 | 123 | pool: |
@@ -143,6 +157,11 @@ jobs: |
143 | 157 | |
144 | 158 | - script: | |
145 | 159 | cd .. |
146 | | - python -m pip install pytest pytest-azurepipelines |
147 | | - python -m pytest --durations 10 --pyargs sklearn_extra |
| 160 | + python -m pip install pytest pytest-azurepipelines pytest-cov codecov |
| 161 | + python -m pytest --durations 10 --pyargs --cov=sklearn_extra sklearn_extra |
148 | 162 | displayName: 'Test' |
| 163 | +
|
| 164 | + - script: codecov -t %CODECOV_TOKEN% || echo "codecov upload failed" |
| 165 | + displayName: 'Upload coverage report' |
| 166 | + env: |
| 167 | + CODECOV_TOKEN: $(CODECOV_TOKEN) |
0 commit comments