Skip to content

Commit

Permalink
Fix travis and tox
Browse files Browse the repository at this point in the history
  • Loading branch information
don4get committed Jan 15, 2020
1 parent eb2f396 commit 9cb719e
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 22 deletions.
6 changes: 1 addition & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ matrix:
env: TOXENV=py38

install:
- pip install -r requirements.txt
- pip install -r tests/requirements.txt
- pip install tox

script:
- tox
- pytest --cov-report term
after_success:
- codecov
4 changes: 4 additions & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ include README.rst
include requirements.txt
exclude pyproject.toml
include setup.py
include Pipfile
include Pipfile.lock
include readthedocs.yml


include .flake8
include .isort.cfg
Expand Down
3 changes: 2 additions & 1 deletion requirements_tests.txt
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
black
codecov
flake8
pre-commit
pytest
pytest-cov
pytest-qt
tox
pre-commit
32 changes: 16 additions & 16 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = py36, py37, py38, black, packaging
envlist = py36, py37, py38, black, packaging, codecov

[default]

Expand All @@ -9,40 +9,28 @@ basepython = python3.8
setenv =
PYTHONPATH = {toxinidir}

commands = py.test {posargs:tests}
commands = pytest --cov-append --cov=nodedge tests/
deps =
-rrequirements.txt
-rrequirements_tests.txt

[testenv:black]

description = run Black (linter)

basepython = {[default]basepython}

skip_install = True

deps =
-rrequirements_tests.txt

commands =
black {env:BLACK_LINT_ARGS:} nodedge

[testenv:flake8]

description = run Flake8 (linter)

basepython = {[default]basepython}

skip_install = True

deps =
-rrequirements.txt
-rrequirements_tests.txt

commands =
flake8 {posargs:nodedge/{env:PY_MODULE}}

flake8 {posargs:nodedge}

[flake8]
ignore = E203, E266, E501, W503, F403, F401, F405, E231
Expand All @@ -66,4 +54,16 @@ deps =
commands =
check-manifest
pip wheel --wheel-dir "{envtmpdir}/dist" --no-deps {toxinidir}
twine check "{envtmpdir}/dist/"*
twine check "{envtmpdir}/dist/"*

[testenv:codecov]
deps =
codecov
skip_install = true
usedevelop = false
setenv =
COVERAGE_FILE=.coverage
commands =
coverage report
coverage xml --ignore-errors
codecov []

0 comments on commit 9cb719e

Please sign in to comment.