Skip to content

Commit 5301e91

Browse files
authored
Merge branch 'master' into name
2 parents b3a603d + e6a1e8e commit 5301e91

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

buildspec-unittests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ phases:
77
- TOX_PARALLEL_NO_SPINNER=1
88
- PY_COLORS=0
99
- start_time=`date +%s`
10-
- tox -e flake8,pylint,twine,black-check
10+
- tox -e flake8,pylint,twine,black-check --parallel all
1111
- ./ci-scripts/displaytime.sh 'flake8,pylint,twine,black-check' $start_time
1212

1313
- start_time=`date +%s`
14-
- tox -e sphinx,doc8
14+
- tox -e sphinx,doc8 --parallel all
1515
- ./ci-scripts/displaytime.sh 'sphinx,doc8' $start_time
1616

1717
# run unit tests

tox.ini

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,9 +67,11 @@ passenv =
6767
# {posargs} can be passed in by additional arguments specified when invoking tox.
6868
# Can be used to specify which tests to run, e.g.: tox -- -s
6969
commands =
70-
coverage run --source sagemaker -m pytest {posargs}
70+
pytest --cov=sagemaker --cov-append {posargs}
7171
{env:IGNORE_COVERAGE:} coverage report --fail-under=86 --omit */tensorflow/tensorflow_serving/*
7272
deps = .[test]
73+
depends =
74+
{py27,py36,py37,py38}: clean
7375

7476
[testenv:flake8]
7577
basepython = python3
@@ -130,3 +132,8 @@ basepython = python3
130132
deps = black==19.10b0
131133
commands =
132134
black -l 100 --check ./
135+
136+
[testenv:clean]
137+
deps = coverage
138+
skip_install = true
139+
commands = coverage erase

0 commit comments

Comments
 (0)