File: tox.ini

package info (click to toggle)
defcon 0.12.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,988 kB
  • sloc: python: 12,306; makefile: 66
file content (37 lines) | stat: -rw-r--r-- 805 bytes parent folder | download
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
[tox]
minversion = 3.8
envlist = py3{9,10,11,12,13}-cov,coverage
skip_missing_interpreters = true

[testenv]
deps =
    pytest
    -rrequirements.txt
    cov: coverage
commands =
    # run the test suite against the package installed inside tox env
    !cov: py.test {posargs}
    # if `*-cov` factor in the tox env name, also collect test coverage
    cov: coverage run --parallel-mode -m pytest {posargs}

[testenv:coverage]
deps =
    coverage
skip_install = true
commands=
    coverage combine
    coverage report
    coverage html

[testenv:coveralls]
description = upload coverage report to coveralls
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
deps =
    {[testenv:coverage]deps}
    coveralls
skip_install = true
ignore_outcome = true
download = true
commands=
    coverage combine
    coveralls