Skip to content

change: Fix py2 test environment. #42

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 12, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,5 @@ test/resources/local_mode_lock
__pycache__/
.idea/
.DS_Store
**/*.pyc
**.pyc
12 changes: 8 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,22 +18,25 @@ exclude =
lib/
max-complexity = 10
ignore =
C901,
E203, # whitespace before ':': Black disagrees with and explicitly violates this.
FI10,
FI12,
FI13,
FI14,
FI15,
FI16,
FI17,
FI18,
FI18, # __future__ import "annotations" missing -> check only Python 3.7 compatible
FI50,
FI51,
FI52,
FI53,
FI54,
FI55,
FI56,
FI57
FI57,
W503
require-code = True

[testenv]
Expand All @@ -46,8 +49,8 @@ passenv =
AWS_CONTAINER_CREDENTIALS_RELATIVE_URI
AWS_DEFAULT_REGION
commands =
coverage run --source sagemaker_pytorch_serving_container -m py.test test/unit {posargs}
coverage report
coverage run --source sagemaker_pytorch_serving_container -m pytest {posargs}
{env:IGNORE_COVERAGE:} coverage report --fail-under=90 --include *sagemaker_pytorch_serving_container*
deps =
coverage
pytest
Expand All @@ -62,6 +65,7 @@ deps =
torchvision
retrying
six
future

[testenv:flake8]
basepython = python
Expand Down