forked from pace-neutrons/Euphonic
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtox.ini
More file actions
115 lines (101 loc) · 2.72 KB
/
Copy pathtox.ini
File metadata and controls
115 lines (101 loc) · 2.72 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
[tox]
min_version = 4.0
# The python environments to run the tests in
envlist = py{311,312,313,314,315},py{311,312,313,314}-mac,py310-{base,brille,matplotlib,phonopy-reader,all,minrequirements-linux,minrequirements-mac,no-c}
allowlist_externals = git
[testenv]
package = wheel
changedir = tests_and_analysis/test
test_command = python run_tests.py --report
passenv = CC_LD
install_command =
python -m pip install -v \
--force-reinstall \
--upgrade \
--upgrade-strategy eager \
{opts} \
{packages}
dependency_groups =
test
# Test with all extras
[testenv:py{311,312,313,314}]
platform = (linux)|(win32)
extras =
matplotlib
phonopy-reader
brille
commands =
{[testenv]test_command} {posargs}
# Test brille and non-brille separately
[testenv:py{311,312,313,314}-mac]
platform = darwin
extras = {[testenv:py311]extras}
commands =
{[testenv]test_command} {posargs} -m "brille"
{[testenv]test_command} {posargs} -m "not brille"
# Py3.15 is pre-release, test without extras
[testenv:py315]
commands = {[testenv]test_command} -m "not (phonopy_reader or matplotlib or brille)"
# Test with no extras
[testenv:py310-base]
commands = {[testenv]test_command} -m "not (phonopy_reader or matplotlib or brille)"
# Test with matplotlib extra only
[testenv:py310-matplotlib]
extras =
matplotlib
commands = {[testenv]test_command} -m "matplotlib and not multiple_extras"
# Test with phonopy-reader extra only
[testenv:py310-phonopy-reader]
extras =
phonopy-reader
commands = {[testenv]test_command} -m "phonopy_reader and not multiple_extras"
[testenv:py310-brille]
platform = (linux)|(win32)
extras =
brille
commands = {[testenv]test_command} -m "brille and not multiple_extras"
# Run remaining tests that require multiple extras
[testenv:py310-all]
platform = (linux)|(win32)
extras =
matplotlib
phonopy-reader
brille
commands =
{[testenv]test_command} -m "multiple_extras"
[testenv:py310-no-c]
platform = linux
install_command = {[testenv]install_command} -Csetup-args="-Dpython_only=true"
extras =
matplotlib
phonopy-reader
brille
commands = {[testenv]test_command} -m "not c_extension"
[testenv:py310-minrequirements-linux]
platform = linux
dependency_groups =
{[testenv]dependency_groups}
min_reqs
deps =
numpy==1.24
setuptools==60.*
extras =
matplotlib
phonopy-reader
brille
commands = {[testenv]test_command} -m "multiple_extras"
[testenv:py310-minrequirements-mac]
platform = darwin
dependency_groups =
{[testenv]dependency_groups}
min_reqs
deps =
numpy==1.24
setuptools==60.*
extras =
matplotlib
phonopy-reader
brille
commands =
{[testenv]test_command} -m "brille"
{[testenv]test_command} -m "not brille"