forked from ome/omero-web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tox.ini
45 lines (40 loc) · 1.53 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
[tox]
# Default tox environment when run without `-e`
envlist = py37, py38, py39, py310
# https://tox.readthedocs.io/en/latest/config.html#conf-requires
# Ensure pip is new so we can install manylinux wheel
requires = pip >= 19.0.0
virtualenv >= 16.0.0
[testenv]
deps =
pre-commit
future
numpy>=1.9
pytest
PyYAML
tables
# https://github.com/pytest-dev/pytest-xdist/issues/585
pytest-xdist < 2
restructuredtext-lint
https://github.com/ome/zeroc-ice-py-github-ci/releases/download/0.2.0/zeroc_ice-3.6.5-cp37-cp37m-linux_x86_64.whl; platform_system=="Linux" and python_version=="3.7"
https://github.com/ome/zeroc-ice-py-github-ci/releases/download/0.2.0/zeroc_ice-3.6.5-cp38-cp38-linux_x86_64.whl; platform_system=="Linux" and python_version=="3.8"
https://github.com/ome/zeroc-ice-py-github-ci/releases/download/0.2.0/zeroc_ice-3.6.5-cp39-cp39-linux_x86_64.whl; platform_system=="Linux" and python_version=="3.9"
https://github.com/ome/zeroc-ice-py-github-ci/releases/download/0.2.0/zeroc_ice-3.6.5-cp310-cp310-linux_x86_64.whl; platform_system=="Linux" and python_version=="3.10"
setenv =
OMERODIR = {toxinidir}
DJANGO_SETTINGS_MODULE = omeroweb.settings
PYTHONPATH = {toxinidir}
passenv =
ICE_CONFIG
PIP_CACHE_DIR
commands =
pre-commit run --all-files
rst-lint README.rst
pip install .
pytest {posargs:-rf}
[testenv:py37]
commands =
# pre-commit skipped as flake8 6.0.0 requires Python 3.8+
rst-lint README.rst
pip install .
pytest {posargs:-rf}