/
tox.ini
139 lines (122 loc) · 2.73 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py{38,39,310,311}, setup, numpy-{120,121,123}, tensorflow-{26,27,28,29,210,211}
[testenv]
deps =
-rdev-requirements.txt
commands =
pytest \
{posargs} # substitute with tox' positional arguments
[testenv:numpy-120]
basepython = python
deps =
-rdev-requirements.txt
numpy~=1.20.0
commands =
pytest tests/test_config {posargs}
[testenv:numpy-121]
basepython = python
deps =
-rdev-requirements.txt
numpy~=1.21.0
commands =
pytest tests/test_config {posargs}
[testenv:numpy-122]
basepython = python
deps =
-rdev-requirements.txt
numpy~=1.22.0
commands =
pytest tests/test_config {posargs}
[testenv:numpy-123]
basepython = python
deps =
-rdev-requirements.txt
numpy~=1.23.0
commands =
pytest tests/test_config {posargs}
[testenv:numpy-124]
basepython = python
deps =
-rdev-requirements.txt
numpy~=1.24.0rc1
commands =
pytest tests/test_config {posargs}
[testenv:tensorflow-115]
basepython = python
deps =
-rdev-requirements.txt
tensorflow~=1.15.0
commands =
pytest tests/test_stflow tests/test_optional.py \
{posargs}
[testenv:tensorflow-26]
basepython = python
deps =
-rdev-requirements.txt
tensorflow~=2.6.0
commands =
pytest tests/test_stflow tests/test_optional.py \
{posargs}
[testenv:tensorflow-27]
basepython = python
deps =
-rdev-requirements.txt
tensorflow~=2.7.0
commands =
pytest tests/test_stflow tests/test_optional.py \
{posargs}
[testenv:tensorflow-28]
basepython = python
deps =
-rdev-requirements.txt
tensorflow~=2.8.0
commands =
pytest tests/test_stflow tests/test_optional.py \
{posargs}
[testenv:tensorflow-29]
basepython = python
deps =
-rdev-requirements.txt
tensorflow~=2.9.0
commands =
pytest tests/test_stflow tests/test_optional.py \
{posargs}
[testenv:tensorflow-210]
basepython = python
deps =
-rdev-requirements.txt
tensorflow~=2.10.0
commands =
pytest tests/test_stflow tests/test_optional.py \
{posargs}
[testenv:tensorflow-211]
basepython = python
deps =
-rdev-requirements.txt
tensorflow~=2.11.0
commands =
pytest tests/test_stflow tests/test_optional.py \
{posargs}
[testenv:setup]
basepython = python
deps =
pytest==7.1.2
mock
commands =
pytest {posargs}
[testenv:coverage]
passenv = TRAVIS, TRAVIS_*
basepython = python
deps =
-rdev-requirements.txt
pytest-cov
coveralls
commands =
pytest \
--cov sacred \
{posargs}
- coveralls