forked from MouseLand/cellpose
-
Notifications
You must be signed in to change notification settings - Fork 1
/
tox.ini
51 lines (46 loc) · 929 Bytes
/
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
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
requires = tox-conda
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
fail_on_no_env = True
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows
[testenv]
platform =
macos: darwin
linux: linux
windows: win32
passenv =
CI
GITHUB_ACTIONS
DISPLAY XAUTHORITY
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
PYVISTA_OFF_SCREEN
CONDA_EXE
CONDA
extras = gui,distributed
conda_deps =
pytest
#pytorch
#linux,windows: cpuonly
conda_channels =
pytorch
deps =
.[gui,distributed]
pytest-cov
pytest-xvfb
# ignoring contrib tests for now
commands =
pytest -v --color=yes --cov=cellpose --cov-report=xml --ignore=tests/contrib
[testenv:gpu]
conda_deps =
pytest
pytorch
linux,windows: cudatoolkit=11.3