-
Notifications
You must be signed in to change notification settings - Fork 146
/
tox.ini
58 lines (50 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
# 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 = py{38,39,310,311,312,py3},memorytest38,doctest38,coverage-py38
[gh-actions]
python =
3.9: py39
3.10: py310
3.11: py311
3.12: py312
# Skipping 3.8 under GH actions for now. Need to fix coverage first.
[testenv]
commands = python {toxinidir}/setup.py test
deps =
setuptools
# Specifying the following tests like this is very non-DRY but I have no better solution right now.
[testenv:coverage-py38]
# Skip using C-extension to get coverage metrics on Python code.
basepython = python3.8
passenv = TRAVIS TRAVIS_JOB_ID TRAVIS_BRANCH
setenv =
PYRSISTENT_NO_C_EXTENSION = 1
deps =
setuptools
pytest
hypothesis
pytest-cov
coveralls
changedir = tests
commands =
pytest --cov=pyrsistent
coveralls
[testenv:memorytest38]
basepython = python3.8
deps =
setuptools
pytest
memory_profiler
psutil
changedir = .
commands = python tests/memory_profiling.py
[testenv:doctest38]
basepython = python3.8
deps = pytest
changedir = .
commands = pytest --doctest-modules pyrsistent
[pytest]
norecursedirs = build