2017-02-02 17:28:16 +01:00
|
|
|
[tox]
|
2021-01-14 20:39:46 +01:00
|
|
|
envlist = py36,py37,py38,py39,packaging,pre-commit-check
|
2017-02-02 17:28:16 +01:00
|
|
|
|
|
|
|
[testenv]
|
2017-04-18 10:48:04 +02:00
|
|
|
deps =
|
2018-04-06 20:25:06 +02:00
|
|
|
-U
|
|
|
|
tox
|
|
|
|
pytest
|
|
|
|
pytest-cov
|
|
|
|
coverage
|
2020-04-03 21:58:56 +02:00
|
|
|
taxii2-client
|
2020-03-23 02:16:36 +01:00
|
|
|
rapidfuzz
|
2019-09-24 05:13:50 +02:00
|
|
|
haversine
|
2020-04-03 21:58:56 +02:00
|
|
|
medallion
|
2017-04-18 10:48:04 +02:00
|
|
|
commands =
|
2019-08-08 21:22:21 +02:00
|
|
|
python -m pytest --cov=stix2 stix2/test/ --cov-report term-missing -W ignore::stix2.exceptions.STIXDeprecationWarning
|
2017-04-18 10:48:04 +02:00
|
|
|
|
2021-01-13 23:20:21 +01:00
|
|
|
passenv = GITHUB_*
|
2018-04-06 20:25:06 +02:00
|
|
|
|
2018-05-02 19:37:44 +02:00
|
|
|
[testenv:packaging]
|
|
|
|
deps =
|
2019-08-12 18:28:27 +02:00
|
|
|
twine
|
2018-05-02 19:37:44 +02:00
|
|
|
commands =
|
2021-01-13 23:20:21 +01:00
|
|
|
python setup.py sdist bdist_wheel --universal
|
2019-08-12 18:28:27 +02:00
|
|
|
twine check dist/*
|
2018-05-02 19:37:44 +02:00
|
|
|
|
2021-01-13 23:20:21 +01:00
|
|
|
[testenv:pre-commit-check]
|
|
|
|
deps =
|
|
|
|
pre-commit
|
|
|
|
commands =
|
|
|
|
pre-commit run --all-files
|
|
|
|
|
|
|
|
[gh-actions]
|
2017-02-02 17:28:16 +01:00
|
|
|
python =
|
2020-01-04 19:50:06 +01:00
|
|
|
3.6: py36
|
|
|
|
3.7: py37
|
2021-01-14 21:36:45 +01:00
|
|
|
3.8: py38
|
2021-01-14 20:39:46 +01:00
|
|
|
3.9: py39, packaging, pre-commit-check
|