tests: run tests concurrently
This commit is contained in:
parent
ce4f9ed8f4
commit
3f816baf2b
13
README.md
13
README.md
|
|
@ -24,3 +24,16 @@ With the "/generate-invite" command,
|
||||||
you can also generate an invite link for the bot
|
you can also generate an invite link for the bot
|
||||||
so you can publish it.
|
so you can publish it.
|
||||||
|
|
||||||
|
## Contribute
|
||||||
|
|
||||||
|
Pull Requests are very welcome!
|
||||||
|
|
||||||
|
To run the tests and lint checks:
|
||||||
|
|
||||||
|
```
|
||||||
|
python3 -m venv venv
|
||||||
|
. venv/bin/activate
|
||||||
|
pip install -e .[dev]
|
||||||
|
tox
|
||||||
|
```
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,7 @@ console_scripts =
|
||||||
[options.extras_require]
|
[options.extras_require]
|
||||||
dev =
|
dev =
|
||||||
pytest
|
pytest
|
||||||
|
pytest-xdist
|
||||||
tox
|
tox
|
||||||
black
|
black
|
||||||
|
|
||||||
|
|
@ -50,8 +51,9 @@ commands =
|
||||||
[testenv]
|
[testenv]
|
||||||
deps =
|
deps =
|
||||||
pytest
|
pytest
|
||||||
|
pytest-xdist
|
||||||
commands =
|
commands =
|
||||||
pytest tests
|
pytest -n2 tests
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
max_line_length = 120
|
max_line_length = 120
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue