Skip to content

Commit 2e03b6e

Browse files
committed
Run tests in parallel
1 parent fec548a commit 2e03b6e

File tree

5 files changed

+44
-6
lines changed

5 files changed

+44
-6
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,9 @@ jobs:
4545
sudo make install
4646
popd
4747
- name: Run tests
48-
run: tox -vv
48+
env:
49+
TOX_PARALLEL_NO_SPINNER: 1
50+
run: tox -vvp
4951
- name: Generate coverage report
5052
run: tox -e coverage-report
5153
- name: Upload coverage

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,23 +55,23 @@ test:
5555

5656
.PHONY: test_py37
5757
test_py37:
58-
tox -vv -e py37,py37-setproctitle,py37-uvloop
58+
tox -vvp -e py37,py37-setproctitle,py37-uvloop
5959

6060
.PHONY: test_py38
6161
test_py38:
62-
tox -vv -e py38,py38-setproctitle,py38-uvloop
62+
tox -vvp -e py38,py38-setproctitle,py38-uvloop
6363

6464
.PHONY: test_py39
6565
test_py39:
66-
tox -vv -e py39,py39-setproctitle,py39-uvloop
66+
tox -vvp -e py39,py39-setproctitle,py39-uvloop
6767

6868
.PHONY: test_pypy3
6969
test_pypy:
70-
tox -vv -e pypy3,pypy3-setproctitle,py39-uvloop
70+
tox -vvp -e pypy3,pypy3-setproctitle,py39-uvloop
7171

7272
.PHONY: test_pyston-3
7373
test_pyston-3:
74-
tox -vv -e pyston-3,pyston-3-setproctitle,pyston-3-uvloop
74+
tox -vvp -e pyston-3,pyston-3-setproctitle,pyston-3-uvloop
7575

7676
.PHONY: test_build
7777
test_build:

README.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ randomly do either of those two actions.
2626
Think of Blackhole sort of like a honeypot in terms of how it handles mail, but
2727
it's specifically designed with testing in mind.
2828

29+
Python support
30+
==============
31+
32+
- Python 3.7+
33+
- PyPy 3.7+
34+
- Pyston 2.2+
2935

3036
Documentation
3137
=============

docs/source/overview.rst

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,16 @@ Overview
3131
Requirements
3232
============
3333

34+
Python support
35+
--------------
36+
3437
- Python 3.7+, PyPy 3.7+, or Pyston 2.2+
3538

39+
Extras
40+
------
41+
42+
- `setproctitle` if you wish to have named processes
43+
- `uvloop` if you wish to use `libuv`
3644

3745
.. _installation:
3846

@@ -46,6 +54,27 @@ PyPI
4654
4755
pip install blackhole
4856
57+
Installing with extas
58+
#####################
59+
60+
- For uvloop support
61+
62+
.. code-block:: bash
63+
64+
pip install blackhole[uvloop]
65+
66+
- For setproctitle support
67+
68+
.. code-block:: bash
69+
70+
pip install blackhole[setproctitle]
71+
72+
For both `uvloop` and `setproctitle`
73+
74+
.. code-block:: bash
75+
76+
pip install blackhole[uvloop,setproctitle]
77+
4978
Source
5079
------
5180

tox.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ python =
3333

3434
[testenv]
3535
setenv = VIRTUALENV_NO_DOWNLOAD=1
36+
parallel_show_output = true
3637
deps =
3738
setproctitle: setproctitle
3839
uvloop: uvloop

0 commit comments

Comments
 (0)