-
Notifications
You must be signed in to change notification settings - Fork 71
/
Copy pathtox.ini
72 lines (62 loc) · 1.91 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
[tox]
envlist = py{37,38,39,310,311},py{37,38,39,310,311}-compress
skip_missing_interpreters=true
#do i need change here to trigger wf
[gh-actions]
# needed to match gh-action python version numbers with tox mnemonic
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
[gh-actions:env]
PLATFORM =
ubuntu-latest: linux
macos-latest: macos
windows-latest: windows
[testenv]
passenv = HOME,USER
deps =
!h5py3: -rrequirements{env:TOX_H5PY_REQIREMENTS:}.txt
h5py3: -rrequirements_h5py_3.txt
-rrequirements_test.txt
# {posargs} allows to pass any pytest related cli arguments
# to tox after -- argument separator.
commands =
linux: pip install --upgrade pip virtualenv
macos: pip install --upgrade pip virtualenv
windows: python -m pip install --upgrade pip virtualenv
check-manifest
py{37,38,39,310,311}-!compress: pytest -v -v --cov-report=term-missing --cov-report=xml:coverage.xml {posargs}
compress: pytest --enable-compression -v -v --cov-report=term-missing --cov-report=xml:coverage.xml {posargs}
[testenv:h5py3]
# special environment for testing and debugging h5py >= 3.0 support
# related issues. Manually calls python setup.py develop instead of
# python setup.py install which would also be possible below.
# system commands like mv, ln etc must be explicitly allowed to be
# called from within the virtual environment
skipsdist=true
skip_install=true
allowlist_externals=
mv
ln
cp
rm
cat
# change h5py version requirements to >= 3.0
commands_pre=
mv -f requirements.txt requirements_mv.txt
ln -s requirements_h5py_3.txt requirements.txt
cat requirements.txt
commands =
python setup.py develop
pytest --cov-report=term-missing {posargs}
# switch back to initial state again
commands_post=
rm requirements.txt
cp requirements_mv.txt requirements.txt
[pytest]
# options to be passed to pytest in any cases as well
# as any desired pytest configuration values
addopts = --cov=./hickle