]> git.madduck.net Git - etc/vim.git/blob - tox.ini

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Move 3.11 tests to install aiohttp without C extensions (#3258)
[etc/vim.git] / tox.ini
1 [tox]
2 envlist = {,ci-}py{36,37,38,39,310,311,py3},fuzz,run_self
3
4 [testenv]
5 setenv = PYTHONPATH = {toxinidir}/src
6 skip_install = True
7 # We use `recreate=True` because otherwise, on the second run of `tox -e py`,
8 # the `no_jupyter` tests would run with the jupyter extra dependencies installed.
9 # See https://github.com/psf/black/issues/2367.
10 recreate = True
11 deps =
12     -r{toxinidir}/test_requirements.txt
13 ; parallelization is disabled on CI because pytest-dev/pytest-xdist#620 occurs too frequently
14 ; local runs can stay parallelized since they aren't rolling the dice so many times as like on CI
15 commands =
16     pip install -e .[d]
17     coverage erase
18     pytest tests --run-optional no_jupyter \
19         !ci: --numprocesses auto \
20         --cov {posargs}
21     pip install -e .[jupyter]
22     pytest tests --run-optional jupyter \
23         -m jupyter \
24         !ci: --numprocesses auto \
25         --cov --cov-append {posargs}
26     coverage report
27
28 [testenv:{,ci-}pypy3]
29 setenv = PYTHONPATH = {toxinidir}/src
30 skip_install = True
31 recreate = True
32 deps =
33     -r{toxinidir}/test_requirements.txt
34 ; a separate worker is required in ci due to https://foss.heptapod.net/pypy/pypy/-/issues/3317
35 ; this seems to cause tox to wait forever
36 ; remove this when pypy releases the bugfix
37 commands =
38     pip install -e .[d]
39     coverage erase
40     pytest tests \
41         --run-optional no_jupyter \
42         !ci: --numprocesses auto \
43         ci: --numprocesses 1 \
44         --cov {posargs}
45     pip install -e .[jupyter]
46     pytest tests --run-optional jupyter \
47         -m jupyter \
48         !ci: --numprocesses auto \
49         ci: --numprocesses 1 \
50         --cov --cov-append {posargs}
51     coverage report
52
53 [testenv:{,ci-}311]
54 setenv =
55   PYTHONPATH = {toxinidir}/src
56   AIOHTTP_NO_EXTENSIONS = 1
57 skip_install = True
58 recreate = True
59 deps =
60 ; We currently need > aiohttp 3.8.1 that is on PyPI for 3.11
61     git+https://github.com/aio-libs/aiohttp
62     -r{toxinidir}/test_requirements.txt
63 ; a separate worker is required in ci due to https://foss.heptapod.net/pypy/pypy/-/issues/3317
64 ; this seems to cause tox to wait forever
65 ; remove this when pypy releases the bugfix
66 commands =
67     pip install -e .[d]
68     coverage erase
69     pytest tests \
70         --run-optional no_jupyter \
71         !ci: --numprocesses auto \
72         ci: --numprocesses 1 \
73         --cov {posargs}
74     pip install -e .[jupyter]
75     pytest tests --run-optional jupyter \
76         -m jupyter \
77         !ci: --numprocesses auto \
78         ci: --numprocesses 1 \
79         --cov --cov-append {posargs}
80     coverage report
81
82 [testenv:fuzz]
83 skip_install = True
84 deps =
85     -r{toxinidir}/test_requirements.txt
86     hypothesmith
87     lark-parser
88 commands =
89     pip install -e .[d]
90     coverage erase
91     coverage run {toxinidir}/scripts/fuzz.py
92     coverage report
93
94 [testenv:run_self]
95 setenv = PYTHONPATH = {toxinidir}/src
96 skip_install = True
97 commands =
98     pip install -e .[d]
99     black --check {toxinidir}/src {toxinidir}/tests {toxinidir}/setup.py