-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtox.ini
133 lines (119 loc) · 3.57 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
# tox (https://tox.readthedocs.io/) 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}-{PyQt5,PySide2,PyQt6,PySide6}-all, py{38,39,310,311}-{PyQt5,PySide2,PyQt6,PySide6}-napari_{414,415,416,417,repo}
toxworkdir=/tmp/tox
[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
fail_on_no_env = True
[gh-actions:env]
NAPARI =
latest: all
napari414: napari_414
napari415: napari_415
napari416: napari_416
napari417: napari_417
repo: napari_repo
BACKEND =
pyqt: PyQt5
pyside: PySide2
PyQt5: PyQt5
PySide2: PySide2
PyQt6: PyQt6
PySide6: PySide6
[base]
deps =
# pytest-xvfb ; sys_platform == 'linux'
PyQt5: PyQt5!=5.15.0
PyQt5: PyQt5-sip!=12.12.0
PySide2: PySide2!=5.15.0
PyQt6: PyQt6
# fix PySide6 when a new napari release is out
PySide6: PySide6<6.3.2
PySide2: npe2!=0.2.2
imageio != 2.22.1
pydantic<2.0
pytest-json-report
[testenv]
#recreate=true
passenv =
QT_API
CI
GITHUB_ACTIONS
AZURE_PIPELINES
DISPLAY
XAUTHORITY
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
PYVISTA_OFF_SCREEN
deps =
{[base]deps}
pytest-pretty
extras =
test
commands =
python -m pytest package/tests --no-cov --json-report --json-report-file={toxinidir}/report-{envname}-{sys_platform}.json
[testenv:py39-PySide2-conda]
conda_env=environment.yml
deps=
pytest
pytest-json-report
[testenv:py{38,39,310,311}-{PyQt5,PySide2,PyQt6,PySide6}-napari_{414,415,416,417,repo}]
deps =
{[testenv]deps}
414: napari==0.4.14
415: napari==0.4.15
416: napari==0.4.16
417: napari==0.4.17
repo: git+https://github.com/napari/napari.git
commands =
!repo: python -m pytest -v package/tests/test_PartSeg/test_napari_widgets.py --no-cov --json-report --json-report-file={toxinidir}/report-{envname}-{sys_platform}.json
repo: python -m pytest --no-cov --json-report --json-report-file={toxinidir}/report-{envname}-{sys_platform}.json
[testenv:py{38,39,310,311s}-PyQt5-coverage]
deps =
{[testenv]deps}
commands =
python -m pytest --cov-report=xml --cov-report html --cov-append --cov {envsitepackagesdir}/PartSeg --cov {envsitepackagesdir}/PartSegCore --cov {envsitepackagesdir}/PartSegImage --cov package/tests --json-report --json-report-file={toxinidir}/report-{envname}-{sys_platform}.json
[testenv:py38-PyQt5-minimal]
min_req = 1
min_req_constraints=
npe2==0.1.1
setenv =
MINIMAL_REQUIREMENTS=1
PIP_CONSTRAINT=
deps =
{[base]deps}
setuptools_scm[toml]>=3.4
commands =
python -m pytest --cov-report=xml --cov-report html --cov-append --cov {envsitepackagesdir}/PartSeg --cov {envsitepackagesdir}/PartSegCore --cov {envsitepackagesdir}/PartSegImage --cov package/tests --json-report --json-report-file={toxinidir}/report-{envname}-{sys_platform}.json
[testenv:py{38,39,310}-{PyQt5, PySide2,PyQt6,PySide6}-azure]
deps =
pytest-azurepipelines
{[testenv]deps}
[testenv:jupyter]
deps =
{[testenv]deps}
jupyter[all]
matplotlib
-crequirements/constraints_py3.9.txt
setenv =
DATA_PATH = {toxinidir}/typy_neuronow2
commands =
jupyter nbconvert --to notebook --execute tutorials/tutorial_neuron_types/Neuron_types_example.ipynb
[testenv:docs]
deps =
{[testenv]deps}
-rrequirements/constraints_py3.9.txt
allowlist_externals =
make
tar
extras =
docs
commands =
make -C docs html
tar -C docs/_build -czf docs.tar.gz html