From 3f816baf2bdf1f118d97695280e2167f883f6a18 Mon Sep 17 00:00:00 2001 From: missytake Date: Fri, 11 Apr 2025 07:12:02 +0200 Subject: [PATCH] tests: run tests concurrently --- README.md | 13 +++++++++++++ setup.cfg | 4 +++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 3b58f6b..d9f8e79 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,16 @@ With the "/generate-invite" command, you can also generate an invite link for the bot 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 +``` + diff --git a/setup.cfg b/setup.cfg index ec5c4d3..3004d88 100644 --- a/setup.cfg +++ b/setup.cfg @@ -33,6 +33,7 @@ console_scripts = [options.extras_require] dev = pytest + pytest-xdist tox black @@ -50,8 +51,9 @@ commands = [testenv] deps = pytest + pytest-xdist commands = - pytest tests + pytest -n2 tests [flake8] max_line_length = 120