forked from napari/napari-animation
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
61 lines (53 loc) · 1.58 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
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
envlist = py{39,310,311,312}-{linux,macos,windows}-pyqt, py{39,310}-{linux,macosintel,windows}-pyside
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
macos-13: macosintel
windows-latest: windows
[testenv]
platform =
macos: darwin
macosintel: darwin
linux: linux
windows: win32
passenv =
CI
GITHUB_ACTIONS
DISPLAY
XAUTHORITY
NUMPY_EXPERIMENTAL_ARRAY_FUNCTION
PYVISTA_OFF_SCREEN
deps =
pytest # https://docs.pytest.org/en/latest/contents.html
pytest-cov # https://pytest-cov.readthedocs.io/en/latest/
pytest-qt # https://pytest-qt.readthedocs.io/en/latest/intro.html
pytest-xvfb ; sys_platform == 'linux'
commands = pytest -v --color=yes --cov=napari_animation --cov-report=xml
[testenv:py{39,310,311,312}-{linux,macos,windows}-pyqt]
deps =
napari[pyqt5,testing]
lxml_html_clean # should only be needed till napari 0.5.0
# . # napari-animation install from source
# PySide2 unavailable on Mac apple silicon arm64, and for python >=3.11
[testenv:py{39,310}-{linux,macosintel,windows}-pyside]
deps =
napari[pyside2,testing]
lxml_html_clean # should only be needed till napari 0.5.0
# . # napari-animation install from source
[testenv:ruff]
skip_install = True
deps = pre-commit
commands = pre-commit run ruff --all-files
[testenv:black]
skip_install = True
deps = pre-commit
commands = pre-commit run black --all-files