forked from tern-tools/tern
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This PR adds tox.ini to enable tox which is the recommened way of testing. This will allow a user to run the tests before submitting the PR. The documentation has also been updated to show how to run tox. The tox requirement has been added to setup.cfg Also formatted .circleci/config.yml and .github/workflows/pull_request.yml to remove extra newlines and spaces. Signed-off-by: PrajwalM2212 <[email protected]>
- Loading branch information
1 parent
3dbd5a0
commit 1780b71
Showing
5 changed files
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,4 +83,3 @@ workflows: | |
- security | ||
- test_changes | ||
- test_coverage | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
[tox] | ||
envlist = py35 | ||
py36 | ||
py37 | ||
commit | ||
prospector | ||
security | ||
changes | ||
coverage | ||
|
||
[testenv] | ||
description = Run tests | ||
deps = GitPython~=2.1 | ||
|
||
[testenv:prospector] | ||
description = Run the Prospector test | ||
deps = prospector>=1.2 | ||
commands = prospector | ||
|
||
[testenv:commit] | ||
description = Run the Commit test | ||
commands = python ci/test_commit_message.py | ||
|
||
[testenv:security] | ||
description = Run bandit | ||
deps = bandit~=1.6 | ||
commands = bandit . | ||
|
||
[testenv:tests] | ||
description = Run unittests | ||
commands = python -m unittest discover -s tests | ||
|
||
[testenv:coverage] | ||
description = Get current coverage | ||
deps = coverage | ||
commands = coverage run -m unittest discover -s tests | ||
coverage report --omit .tox/**,tests/** | ||
|