-
Notifications
You must be signed in to change notification settings - Fork 2
/
tox.ini
37 lines (32 loc) · 1.29 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
# Tox (http://tox.testrun.org/) is a tool for running tests
# in multiple virtualenvs. This configuration file will run the
# test suite on all supported python versions. To use it, "pip install tox"
# and then run "tox" from this directory.
[tox]
envlist = py36,py37-npy{114,115,116,117,118,latest},py38-npy{117,118,latest}
[testenv]
install_command = pip install {opts} {packages}
setenv =
PYTHONHASHSEED = 42
# hooks for coverage exclusions based on Python major version
py36,py37,py38: PY_MAJOR_VERSION = py3
commands =
# main unit test runner
py36: pytest -v --cov=darr --cov-config=.coveragerc darr
py37-{npy114,npy115,npy116,npy117,npy118}: pytest -v darr
# don't collect coverage when running older numpy versions
py38-{npy117,npy118}: pytest -v darr
py37-npylatest: pytest -v --cov=darr --cov-config=.coveragerc darr
py38-npylatest: pytest -v --cov=darr --cov-config=.coveragerc darr
# generate a coverage report
py36,py37-npylatest,py38-npylatest: coverage report -m
deps =
py37-npy114: numpy==1.14.5
py37-npy115: numpy==1.15.4
py37-npy116: numpy==1.16.5
py37-npy117: numpy==1.17.5
py37-npy118: numpy==1.18.4
py38-npy117: numpy==1.17.5
py38-npy118: numpy==1.18.4
py36,py37-latest,py38-latest: numpy
-rrequirements_dev.txt