File tree Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Expand file tree Collapse file tree 2 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -2,6 +2,9 @@ language: python
2
2
python :
3
3
- ' 2.7'
4
4
- ' 3.5'
5
- install : pip install tox-travis
5
+ install : pip install tox-travis codecov
6
6
script :
7
7
- tox tests/unit
8
+ after_success :
9
+ - codecov
10
+
Original file line number Diff line number Diff line change @@ -32,10 +32,12 @@ passenv =
32
32
AWS_ACCESS_KEY_ID
33
33
AWS_SECRET_ACCESS_KEY
34
34
AWS_SESSION_TOKEN
35
+ COVERAGE_THRESHOLD
35
36
# {posargs} can be passed in by additional arguments specified when invoking tox.
36
37
# Can be used to specify which tests to run, e.g.: tox -- -s
37
38
commands =
38
- pytest {posargs}
39
+ coverage run --source sagemaker -m py.test {posargs}
40
+ coverage report --fail-under ={env:COVERAGE_THRESHOLD:90} --omit */tensorflow/tensorflow_serving/*
39
41
deps =
40
42
pytest
41
43
pytest-cov
You can’t perform that action at this time.
0 commit comments