-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtox.ini
More file actions
164 lines (151 loc) · 5.06 KB
/
tox.ini
File metadata and controls
164 lines (151 loc) · 5.06 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
[tox]
env_list =
lint
poli-base-py310
poli-dockstring-py310
poli-tdc-py310
poli-protein-py310
poli-rasp-py310
poli-ehrlich-holo-py310
poli-rosetta_energy-py310
poli-dms-py310
minversion = 4.10.0
[testenv]
description = run the tests with pytest
package = wheel
wheel_build_env = .pkg
allowlist_externals =
sh
deps =
pytest>=6
commands =
sh -c "rm -rf ~/.poli_objectives/*.sh"
sh -c "rm -rf ~/.poli_objectives/config.rc"
[testenv:lint]
description = check the code style with black
deps =
pre-commit
pyright
pytest
-e.
commands =
sh -c "export PYTHONPATH=$(pwd)/src"
pre-commit run --all-files
[testenv:poli-base-py310]
description = run the tests with pytest on the base environment for poli
basepython = python3.10
wheel_build_env = .pkg
deps=
{[testenv]deps}
-r requirements.txt
-e.
commands=
{[testenv]commands}
pytest {tty:--color=yes} -v -m "unmarked" {posargs}
[testenv:poli-tdc-py310]
description = run the tests with pytest on the TDC environment for poli
basepython = python3.10
wheel_build_env = .pkg
deps=
{[testenv]deps}
-r requirements.txt
-e.[tdc]
commands=
pytest {tty:--color=yes} -v -m "not slow and poli__tdc" {posargs}
[testenv:poli-protein-py310]
description = run the tests with pytest on the protein environment for poli
basepython = python3.10
wheel_build_env = .pkg
deps=
{[testenv]deps}
-r requirements.txt
-e.[protein]
commands=
pytest {tty:--color=yes} -v -m "not slow and poli__protein" {posargs}
[testenv:poli-lambo-py310]
description = run the tests with pytest on the lambo environment for poli
basepython = python3.10
wheel_build_env = .pkg
deps=
{[testenv]deps}
-r requirements.txt
-e.[lambo]
commands=
pytest {tty:--color=yes} -v -m "not slow and poli__lambo" {posargs}
[testenv:poli-dockstring-py310]
description = run the tests with pytest on the dockstring environment for poli
basepython = python3.10
wheel_build_env = .pkg
deps=
{[testenv]deps}
-r requirements.txt
-e.[dockstring]
commands=
pytest {tty:--color=yes} -v -m "not slow and poli__dockstring" {posargs}
[testenv:poli-rasp-py310]
description = run the tests with pytest and conda on the RaSP environment for poli
basepython = python3.10
wheel_build_env = .pkg
deps=
{[testenv]deps}
-r requirements.txt
-e.
commands=
sh -c "conda tos accept --override-channels --channel pkgs/main"
sh -c "conda tos accept --override-channels --channel pkgs/r"
sh -c 'if conda info --envs | grep -q poli__rasp; then echo "poli__rasp already exists"; else conda env create -f ./src/poli/objective_repository/rasp/environment.yml; fi'
sh -c "conda run -n poli__rasp python -m pip uninstall -y poli"
sh -c "conda run -n poli__rasp python -m pip install -e ."
pytest {tty:--color=yes} -v -m "not slow and poli__rasp" {posargs}
[testenv:poli-rmf-py310]
description = run the tests with pytest on the rmf environment for poli
basepython = python3.10
wheel_build_env = .pkg
deps=
{[testenv]deps}
-r requirements.txt
-e.[rmf]
commands=
sh -c "conda tos accept --override-channels --channel pkgs/main"
sh -c "conda tos accept --override-channels --channel pkgs/r"
pytest {tty:--color=yes} -v -m 'not slow and poli__rmf' {posargs}
[testenv:poli-ehrlich-holo-py310]
description = run the tests with pytest on the ehrlich environment for poli
basepython = python3.10
wheel_build_env = .pkg
deps=
{[testenv]deps}
-r requirements.txt
-e.[ehrlich]
commands=
sh -c "conda tos accept --override-channels --channel pkgs/main"
sh -c "conda tos accept --override-channels --channel pkgs/r"
pytest {tty:--color=yes} -v -m 'not slow and poli__ehrlich_holo' {posargs}
[testenv:poli-rosetta_energy-py310]
description = run the tests with pytest on the rosetta_energy environment for poli
basepython = python3.10
wheel_build_env = .pkg
deps=
{[testenv]deps}
-r requirements.txt
-e.
commands=
sh -c "conda tos accept --override-channels --channel pkgs/main"
sh -c "conda tos accept --override-channels --channel pkgs/r"
sh -c 'if conda info --envs | grep -q poli__rosetta_energy; then echo "poli__rosetta_energy already exists"; else conda env create -f ./src/poli/objective_repository/rosetta_energy/environment.yml; fi'
sh -c "conda run -n poli__rosetta_energy python -m pip uninstall -y poli"
sh -c "conda run -n poli__rosetta_energy python -m pip install -e ."
pytest {tty:--color=yes} -v -m "not slow and poli__rosetta_energy" {posargs}
[testenv:poli-dms-py310]
description = run the tests with pytest on the dms environment for poli
basepython = python3.10
wheel_build_env = .pkg
deps=
{[testenv]deps}
-r requirements.txt
-e.
commands=
sh -c 'if conda info --envs | grep -q poli__dms; then echo "poli__dms already exists"; else conda env create -f ./src/poli/objective_repository/dms_gb1/environment.yml; fi'
sh -c "conda run -n poli__dms python -m pip uninstall -y poli"
sh -c "conda run -n poli__dms python -m pip install -e ."
pytest {tty:--color=yes} -v -m "not slow and poli__dms" {posargs}