Skip to content

Commit

Permalink
tox.ini: Default to fail coverage under 95%
Browse files Browse the repository at this point in the history
Allow 65% coverage only on Python 3.4 where lxml is not
being installed.

Related to #16
  • Loading branch information
jayvdb committed Feb 27, 2020
1 parent 0d2906f commit 6740fb1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions .cirrus.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Linux_task:
script:
- python --version
- PY=$(python3 -c 'import sys; print("%d%d" % (sys.version_info[0], sys.version_info[1]))')
- if [[ $PY == 34 ]]; then export COV_FAIL_UNDER=65; fi
- python -m tox -e py$PY
- bash <(curl -s https://codecov.io/bash)

Expand Down
4 changes: 3 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ skip_missing_interpreters = true

[testenv]
usedevelop = true
passenv =
COV_FAIL_UNDER
deps =
py34: colorama!=0.4.2
.
Expand All @@ -16,4 +18,4 @@ deps =
tldextract
regex
commands =
pytest --cov=https_everywhere --maxfail=5 -rs
pytest --cov=https_everywhere --cov-fail-under={COV_FAIL_UNDER:95} --maxfail=5 -rs

0 comments on commit 6740fb1

Please sign in to comment.