-
Notifications
You must be signed in to change notification settings - Fork 78
Expand file tree
/
Copy pathtox.toml
More file actions
115 lines (104 loc) · 2.87 KB
/
Copy pathtox.toml
File metadata and controls
115 lines (104 loc) · 2.87 KB
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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
env_list = [
{product = [{prefix = "py3.", start = 11, stop = 14}]},
"docs",
"doctests",
"lint",
"notebooks",
"sbck",
"upstream"
]
skip_missing_interpreters = true
[env.complete]
extras = ["performance", "plot", "stats", "types"]
[env.docs]
labels = ["docs"]
description = "Build the documentation with makefile under {basepython}"
setenv = {PYTHONPATH = "{toxinidir}", READTHEDOCS = "1"}
allowlist_externals = ["env", "make"]
dependency_groups = ["docs"]
commands = [
["make", "build-docs"]
]
commands_post = []
[env.doctests]
labels = ["doctests"]
description = "Run doctests with pytest under {basepython}"
allowlist_externals = ["make"]
dependency_groups = ["test"]
deps = ["pytest <9.1.0"] # FIXME: Removals in pytest>=9.1 break doctest configurations
commands = [
["make", "test-doctests"]
]
[env.lint]
labels = ["lint"]
description = "Run code quality compliance tests under {basepython}"
skip_install = true
allowlist_externals = ["make"]
dependency_groups = ["lint"]
commands_pre = [
["python", "-m", "pip", "list"],
["python", "-m", "pip", "check"]
]
commands = [
["make", "lint"]
]
commands_post = []
[env.notebooks]
labels = ["notebooks"]
description = "Run notebooks with pytest under {basepython}"
allowlist_externals = ["make"]
dependency_groups = ["test-notebooks"]
commands = [
["make", "test-notebooks"]
]
commands_post = []
[env.offline]
commands = [
["xclim", "prefetch_testing_data"],
["python", "-c", "print('Running offline tests with positional arguments: --disable-socket --allow-unix-socket --m \"not requires_internet\"')"],
["python", "-c", "print('These can be overwritten with: tox -e offline -- -m \"some other marker statement\"')"],
["pytest", "--disable-socket", "--allow-unix-socket", {replace = "posargs", default = ["-m", "not requires_internet"], extend = true}]
]
[env.prefetch]
commands = [
["xclim", "prefetch_testing_data"],
["pytest", "{posargs}"]
]
[env.sbck]
commands_pre = [
["python", "-c", "print('The sbck dependency requires the \"libeigen3-dev\" package to be installed on the system.')"],
["python", "-m", "pip", "install", "sbck>=1.4.2"]
]
[env.upstream]
deps = ["-r CI{/}requirements_upstream.txt"]
[env_run_base]
description = "Run tests with pytest under {basepython}"
set_env = {COV_CORE_SOURCE = "", PYTEST_ADDOPTS = "--numprocesses=logical --durations=10 --cov=xclim --cov-report=lcov", Xfrozen_modules = "off"}
passenv = [
"CI",
"COVERALLS_*",
"GITHUB_*",
"LD_LIBRARY_PATH",
"SKIP_NOTEBOOKS",
"XCLIM_*"
]
download = true
dependency_groups = ["test"]
commands_pre = [
["python", "-m", "pip", "list"],
["xclim", "show_version_info"],
["python", "-m", "pip", "check"],
["xclim", "--help"]
]
commands = [
["pytest", "{posargs}"]
]
commands_post = [
["coverage", "report"]
]
allowlist_externals = ["git", "xclim"]
[gh.python]
"3.11" = ["sbck"]
"3.12" = ["py3.12"]
"3.13" = ["complete"]
"3.14" = ["py3.14"]