-
Notifications
You must be signed in to change notification settings - Fork 6
/
tox.ini
58 lines (55 loc) · 1.7 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
# This file is part of tad-dftd3.
#
# SPDX-Identifier: Apache-2.0
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[tox]
min_version = 4.0
isolated_build = True
envlist =
py38-torch{1110,1121,1131,201,212,222,231,241},
py39-torch{1110,1121,1131,201,212,222,231,241},
py310-torch{1110,1121,1131,201,212,222,231,241},
py311-torch{1131,201,212,222,231,241}
py312-torch{222,231,241}
[testenv]
setenv =
PIP_EXTRA_INDEX_URL = {env:PIP_EXTRA_INDEX_URL:https://download.pytorch.org/whl/cpu}
deps =
torch1110: torch==1.11.0
torch1120: torch==1.12.0
torch1121: torch==1.12.1
torch1130: torch==1.13.0
torch1131: torch==1.13.1
torch200: torch==2.0.0
torch201: torch==2.0.1
torch210: torch==2.1.0
torch211: torch==2.1.1
torch212: torch==2.1.2
torch220: torch==2.2.0
torch221: torch==2.2.1
torch222: torch==2.2.2
torch230: torch==2.3.0
torch231: torch==2.3.1
torch240: torch==2.4.0
torch241: torch==2.4.1
torch250: torch==2.5.0
.[tox]
commands =
pytest -vv {posargs: \
-n logical \
--random-order-bucket=global \
--cov=tad_dftd3 \
--cov-report=term-missing \
--cov-report=xml:coverage.xml \
test}