-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathtox.ini
51 lines (47 loc) · 1 KB
/
tox.ini
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
[tox]
envlist = py38, lint
isolated_build = True
[gh-actions]
python =
3.8: py38
[testenv:lint]
whitelist_externals =
isort
black
flake8
doc8
poetry
mkdocs
twine
extras =
doc
dev
test
commands =
isort omicron
black omicron tests
flake8 omicron tests
doc8 --ignore D001 docs
poetry build
mkdocs build
twine check dist/*
[testenv]
whitelist_externals =
pytest
/bin/sh
poetry
rm
extras =
test
passenv = *
setenv =
PYTHONPATH = {toxinidir}
PYTHONWARNINGS = ignore
commands =
rm -rf dist
poetry build
/bin/sh -c "pip install $(echo tests/packages/*omega-*.whl)"
/bin/sh -c "pip install --force-reinstall $(echo tests/packages/*adaptors*.whl)"
/bin/sh -c "pip install --force-reinstall $(echo dist/*omicron*.whl)"
pytest --cov=omicron --cov-append --cov-report=term-missing --cov-report=xml --doctest-modules tests
/bin/sh -c 'for file in `find omicron -name *.py`;do python -m doctest $file;done'