File: tox.ini

package info (click to toggle)
napari-plugin-engine 0.2.0-5
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 436 kB
  • sloc: python: 3,052; makefile: 21
file content (50 lines) | stat: -rw-r--r-- 1,001 bytes parent folder | download | duplicates (2)
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
[tox]
envlist = py{36,37,38,39}-{linux,macos,windows}
toxworkdir=/tmp/.tox

[gh-actions]
python =
    3.6: py36
    3.7: py37
    3.8: py38
    3.9: py39

[gh-actions:env]
PLATFORM =
    ubuntu-latest: linux
    macos-latest: macos
    windows-latest: windows
    ubuntu-18.04: linux

[testenv]
platform = 
    linux: linux
    macos: darwin
    windows: win32
passenv = CI GITHUB_ACTIONS DISPLAY XAUTHORITY
extras = test
commands = pytest --color=yes -v --cov --cov-report=xml {posargs}

[testenv:napari]
basepython = python3.8
deps = 
    git+https://github.com/napari/napari.git#egg=napari[all,testing]
    pytest-xvfb ; sys_platform == 'linux'
commands = 
    pytest -v --color=yes --pyargs napari {posargs}


[testenv:linting]
skip_install = true
deps = pre-commit
commands = pre-commit run --all-files --show-diff-on-failure


[testenv:docs]
deps =
  sphinx
  pygments
  sphinx_autodoc_typehints
  sphinx_rtd_theme
commands =
  sphinx-build -b html {toxinidir}/docs {toxinidir}/docs/_build/html