-
Notifications
You must be signed in to change notification settings - Fork 15
/
tox.ini
75 lines (65 loc) · 2.07 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
68
69
70
71
72
73
74
75
[tox]
requires =
setuptools >= 64
setuptools_scm >= 8
pip >= 19.3.1
envlist =
py{39,310,311}-test{,-all}{,-latest,-oldest}{,-cov}
codestyle
[testenv]
allowlist_externals =
conda
pytest
setenv =
COBAYA_PACKAGES_PATH = ./cobaya_packages
SKLEARN_ALLOW_DEPRECATED_SKLEARN_PACKAGE_INSTALL = True
# Pass through the following environment variables which may be needed for the CI
passenv = HOME, WINDIR, LC_ALL, LC_CTYPE, CI, TRAVIS
# Run the tests in a temporary directory to make sure that we don't import
# this package from the source tree
changedir = .tmp/{envname}
# tox environments are constructed with so-called 'factors' (or terms)
# separated by hyphens, e.g. test-devdeps-cov. Lines below starting with factor:
# will only take effect if that factor is included in the environment name. To
# see a list of example environments that can be run, along with a description,
# run:
#
# tox -l -v
#
description =
run tests
all: using all optional dependencies
latest: with the latest supported version of key dependencies
oldest: with the oldest supported version of key dependencies
cov: and test coverage
extras =
tests
all: all
commands =
conda info
pip freeze
cobaya-install mflike.TTTEEE --no-set-global
all: cobaya-install planck_2018_highl_plik.TTTEEE_lite_native --no-set-global
!cov: pytest -vv --rootdir={toxinidir} --pyargs {toxinidir}/soliket/ {posargs}
cov: pytest -vv --rootdir={toxinidir} --pyargs {toxinidir}/soliket/ --cov soliket --cov-report=xml --cov-config={toxinidir}/pyproject.toml {posargs}
[testenv:codestyle]
skip_install = true
changedir = .
description = check code style, e.g. with flake8
deps = flake8
commands = flake8
[flake8]
select = E713,E704,E703,E714,E741,E10,E11,E20,E22,E23,E25,E27,E301,E302,E304,E9,
F405,F406,F5,F6,F7,F8,E501
max-line-length = 90
exclude = .tox,build,cobaya_packages,test,.eggs
[testenv:docs]
skip_install = true
changedir = docs
description = Make sphinx docs
deps =
sphinx
sphinx_rtd_theme
commands =
pip freeze
sphinx-build -b html . _build