From 38e434f6bfc6b354a45b558a62402bad6a96f672 Mon Sep 17 00:00:00 2001 From: Kevin Cutler <39454982+kevinjohncutler@users.noreply.github.com> Date: Mon, 3 Jan 2022 18:41:03 -0800 Subject: [PATCH] Add tox.ini --- tox.ini | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 tox.ini diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..28ccce4 --- /dev/null +++ b/tox.ini @@ -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 \ No newline at end of file