Skip to content

Fix tox configuration for CI #46

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 23, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 7 additions & 22 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,19 @@ envlist = py{36,37,38},lint
skipsdist = True

[testenv]
description = run tests with {basepython}
setenv = VIRTUAL_ENV={envdir}
usedevelop = True
install_command = pip install -U {opts} {packages}
deps = -r{toxinidir}/requirements/test.txt
-r{toxinidir}/requirements/docs.txt
commands = find . -type f -name "*.pyc" -delete
whitelist_externals = find
rm
go
docker
deps =
-r{toxinidir}/requirements/test.txt
-r{toxinidir}/requirements/docs.txt
setenv =
PYTESTARGS = -v -s --tb=long --cov=cloudevents
commands = pytest {env:PYTESTARGS} {posargs}

[testenv:lint]
basepython = python3.8
commands =
flake8

[testenv:venv]
commands = {posargs}

[testenv:py36]
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests

[testenv:py37]
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests

[testenv:py38]
commands = pytest -v -s --tb=long --cov=cloudevents {toxinidir}/cloudevents/tests

[flake8]
ignore = H405,H404,H403,H401,H306,S101,N802,N803,N806,I202,I201
show-source = True
Expand Down