Skip to content

Commit

Permalink
Add tox.ini
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjohncutler committed Jan 4, 2022
1 parent 10c7af4 commit 38e434f
Showing 1 changed file with 33 additions and 0 deletions.
33 changes: 33 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# For more information about tox, see https://tox.readthedocs.io/en/latest/
[tox]
envlist = py{38,39}-{linux,macos,windows}

[gh-actions]
python =
3.8: py38
#3.9: py39

[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
extras = gui,distributed
deps =
.[gui,distributed]
pytest # https://docs.pytest.org/en/latest/contents.html
pytest-cov # https://pytest-cov.readthedocs.io/en/latest/
pytest-xvfb ; sys_platform == 'linux'
commands = pytest -v --color=yes --cov=cellpose --cov-report=xml

0 comments on commit 38e434f

Please sign in to comment.