-
Notifications
You must be signed in to change notification settings - Fork 73
/
Copy pathtox.ini
67 lines (59 loc) · 1.21 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
[tox]
envlist =
py{37, 38, 39, 310, 311, 312}-{linux,macos,windows}
gh-actions-coveralls
[gh-actions]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312, lint, isort-check, coverage
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows
[testenv]
platform =
linux: linux
macos: darwin
windows: win32
deps =
pip >= 21.0
-rtest-requirements.txt
commands =
# To run specific test, simply run `tox -e py39 -- tests/test_data.py -k test_input_data`
python -m pytest {posargs: tests/} -m "not slow" -n 4 -x
[testenv:isort]
deps =
isort
commands =
isort causalimpact tests
[testenv:isort-check]
deps =
isort
commands =
isort -c -p causalimpact causalimpact tests
[testenv:lint]
basepython =
python3.12
deps =
flake8
commands =
flake8 causalimpact tests
[testenv:coverage]
deps =
{[testenv]deps}
pytest-cov
commands =
python -m pytest tests --cov-report html --cov causalimpact -n 4 -x
[testenv:GHA-coverage]
deps =
{[testenv]deps}
pytest-cov
coverage
commands =
python -m pytest tests --cov-report xml --cov causalimpact -n 4 -x
coverage lcov