File tree Expand file tree Collapse file tree 6 files changed +60
-6
lines changed Expand file tree Collapse file tree 6 files changed +60
-6
lines changed Original file line number Diff line number Diff line change
1
+ # taken from scikit-learn:
2
+ # https://github.com/scikit-learn/scikit-learn/blob/a7e17117bb15eb3f51ebccc1bd53e42fcb4e6cd8/.codecov.yml
3
+ comment : false
4
+
5
+ coverage :
6
+ status :
7
+ project :
8
+ default :
9
+ # Commits pushed to master should not make the overall
10
+ # project coverage decrease by more than 1%:
11
+ target : auto
12
+ threshold : 1%
13
+ patch :
14
+ default :
15
+ # Be tolerant on slight code coverage diff on PRs to limit
16
+ # noisy red coverage status on github PRs.
17
+ # Note The coverage stats are still uploaded
18
+ # to codecov so that PR reviewers can see uncovered lines
19
+ # in the github diff if they install the codecov browser
20
+ # extension:
21
+ # https://github.com/codecov/browser-extension
22
+ target : auto
23
+ threshold : 1%
24
+
Original file line number Diff line number Diff line change 5
5
.coverage
6
6
htmlcov /
7
7
.cache /
8
+ .pytest_cache /
8
9
doc /auto_examples /*
10
+ coverage
11
+ .coverage
12
+ .coverage *
Original file line number Diff line number Diff line change @@ -9,9 +9,19 @@ before_install:
9
9
- sudo apt-get install liblapack-dev
10
10
- pip install --upgrade pip
11
11
- pip install wheel
12
- - pip install cython numpy scipy scikit-learn
12
+ - pip install cython numpy scipy scikit-learn codecov
13
13
- if [[ ($TRAVIS_PYTHON_VERSION == "3.6") ||
14
14
($TRAVIS_PYTHON_VERSION == "2.7")]]; then
15
15
pip install git+https://github.com/skggm/skggm.git@a0ed406586c4364ea3297a658f415e13b5cbdaf8;
16
16
fi
17
- script : pytest test
17
+ - if [[ $TRAVIS_PYTHON_VERSION == "3.4" ]];
18
+ then pip install pytest-cov pytest==3.6;
19
+ fi
20
+ script :
21
+ - if [[ $TRAVIS_PYTHON_VERSION == "3.4" ]];
22
+ then pytest test --cov;
23
+ else pytest test;
24
+ fi
25
+ after_success :
26
+ - bash <(curl -s https://codecov.io/bash)
27
+
Original file line number Diff line number Diff line change 1
- |Travis-CI Build Status | |License | |PyPI version |
1
+ |Travis-CI Build Status | |License | |PyPI version | | Code coverage |
2
2
3
3
metric-learn
4
4
=============
@@ -52,4 +52,5 @@ more complete.
52
52
:target: http://badges.mit-license.org
53
53
.. |PyPI version | image :: https://badge.fury.io/py/metric-learn.svg
54
54
:target: http://badge.fury.io/py/metric-learn
55
-
55
+ .. |Code coverage | image :: https://codecov.io/gh/metric-learn/metric-learn/branch/master/graph/badge.svg
56
+ :target: https://codecov.io/gh/metric-learn/metric-learn
Original file line number Diff line number Diff line change 1
1
# -*- coding: utf-8 -*-
2
+ import sys
2
3
3
4
extensions = [
4
5
'sphinx.ext.autodoc' ,
8
9
'sphinx.ext.mathjax' ,
9
10
'numpydoc' ,
10
11
'sphinx_gallery.gen_gallery' ,
11
- 'sphinx.ext.doctest'
12
+ 'sphinx.ext.doctest' ,
13
+ 'sphinx.ext.intersphinx'
12
14
]
13
15
14
16
templates_path = ['_templates' ]
39
41
# Option to hide doctests comments in the documentation (like # doctest:
40
42
# +NORMALIZE_WHITESPACE for instance)
41
43
trim_doctest_flags = True
44
+
45
+ # intersphinx configuration
46
+ intersphinx_mapping = {
47
+ 'python' : ('https://docs.python.org/{.major}' .format (
48
+ sys .version_info ), None ),
49
+ 'numpy' : ('https://docs.scipy.org/doc/numpy/' , None ),
50
+ 'scipy' : ('https://docs.scipy.org/doc/scipy/reference' , None ),
51
+ 'scikit-learn' : ('https://scikit-learn.org/stable/' , None )
52
+ }
Original file line number Diff line number Diff line change 1
1
metric-learn: Metric Learning in Python
2
2
=======================================
3
- |License | |PyPI version |
3
+ |Travis-CI Build Status | | License | |PyPI version | | Code coverage |
4
4
5
5
Metric-learn contains efficient Python implementations of several
6
6
popular supervised and weakly-supervised metric learning algorithms. The API
@@ -34,7 +34,11 @@ Documentation outline
34
34
35
35
:ref: `genindex ` | :ref: `modindex ` | :ref: `search `
36
36
37
+ .. |Travis-CI Build Status | image :: https://api.travis-ci.org/metric-learn/metric-learn.svg?branch=master
38
+ :target: https://travis-ci.org/metric-learn/metric-learn
37
39
.. |PyPI version | image :: https://badge.fury.io/py/metric-learn.svg
38
40
:target: http://badge.fury.io/py/metric-learn
39
41
.. |License | image :: http://img.shields.io/:license-mit-blue.svg?style=flat
40
42
:target: http://badges.mit-license.org
43
+ .. |Code coverage | image :: https://codecov.io/gh/metric-learn/metric-learn/branch/master/graph/badge.svg
44
+ :target: https://codecov.io/gh/metric-learn/metric-learn
You can’t perform that action at this time.
0 commit comments