forked from aws/sagemaker-python-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
53 lines (48 loc) · 1.24 KB
/
tox.ini
File metadata and controls
53 lines (48 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py27,py35,flake8
skip_missing_interpreters = False
[travis]
python =
3.5: py35, flake8
[flake8]
max-line-length = 120
exclude =
build/
.git
__pycache__
examples/
*pb2.py
.tox
tests/data/
venv/
max-complexity = 10
[testenv]
# TEAMCITY_VERSION environment variable exists during build on Teamcity. teamcity-messages uses it in order to enable
# reporting to TeamCity.
passenv =
TEAMCITY_VERSION
AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY
AWS_SESSION_TOKEN
# {posargs} can be passed in by additional arguments specified when invoking tox.
# Can be used to specify which tests to run, e.g.: tox -- -s
commands =
coverage run --source sagemaker -m py.test {posargs}
{env:IGNORE_COVERAGE:} coverage report --fail-under=90 --omit */tensorflow/tensorflow_serving/*
deps =
pytest
pytest-cov
pytest-xdist
tensorflow
mock
contextlib2
teamcity-messages
awslogs
[testenv:flake8]
basepython = python
deps = flake8
commands= flake8