Skip to content

Commit d551dba

Browse files
authored
Fix tox configuration for CI (cloudevents#46)
Signed-off-by: Dustin Ingram <di@users.noreply.github.com>
1 parent e027fa3 commit d551dba

File tree

1 file changed

+7
-22
lines changed

1 file changed

+7
-22
lines changed

tox.ini

Lines changed: 7 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -3,34 +3,19 @@ envlist = py{36,37,38},lint
33
skipsdist = True
44

55
[testenv]
6-
description = run tests with {basepython}
7-
setenv = VIRTUAL_ENV={envdir}
86
usedevelop = True
9-
install_command = pip install -U {opts} {packages}
10-
deps = -r{toxinidir}/requirements/test.txt
11-
-r{toxinidir}/requirements/docs.txt
12-
commands = find . -type f -name "*.pyc" -delete
13-
whitelist_externals = find
14-
rm
15-
go
16-
docker
7+
deps =
8+
-r{toxinidir}/requirements/test.txt
9+
-r{toxinidir}/requirements/docs.txt
10+
setenv =
11+
PYTESTARGS = -v -s --tb=long --cov=cloudevents
12+
commands = pytest {env:PYTESTARGS} {posargs}
13+
1714
[testenv:lint]
1815
basepython = python3.8
1916
commands =
2017
flake8
2118

22-
[testenv:venv]
23-
commands = {posargs}
24-
25-
[testenv:py36]
26-
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests
27-
28-
[testenv:py37]
29-
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests
30-
31-
[testenv:py38]
32-
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests
33-
3419
[flake8]
3520
ignore = H405,H404,H403,H401,H306,S101,N802,N803,N806,I202,I201
3621
show-source = True

0 commit comments

Comments
 (0)