39 lines
632 B
INI
39 lines
632 B
INI
[tox]
|
|
envlist = py36,py37,py38,py39,packaging,pre-commit-check
|
|
|
|
[testenv]
|
|
deps =
|
|
-U
|
|
tox
|
|
pytest
|
|
pytest-cov
|
|
coverage
|
|
taxii2-client
|
|
rapidfuzz
|
|
haversine
|
|
medallion
|
|
commands =
|
|
python -m pytest --cov=stix2 stix2/test/ --cov-report term-missing -W ignore::stix2.exceptions.STIXDeprecationWarning
|
|
|
|
passenv = GITHUB_*
|
|
|
|
[testenv:packaging]
|
|
deps =
|
|
twine
|
|
commands =
|
|
python setup.py sdist bdist_wheel --universal
|
|
twine check dist/*
|
|
|
|
[testenv:pre-commit-check]
|
|
deps =
|
|
pre-commit
|
|
commands =
|
|
pre-commit run --all-files
|
|
|
|
[gh-actions]
|
|
python =
|
|
3.6: py36
|
|
3.7: py37
|
|
3.8: py38
|
|
3.9: py39, packaging, pre-commit-check
|