Skip to content

🕷️ The BEST Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scrapling_dev

Make tests run in parallel on GitHub actions

Karim shoair454b79e00f9f
diff --git a/tests/requirements.txt b/tests/requirements.txt
index d5f716f..394a2ea 100644
--- a/tests/requirements.txt
+++ b/tests/requirements.txt
@@ -5,3 +5,4 @@ camoufox
werkzeug<3.0.0
pytest-httpbin==2.1.0
httpbin~=0.10.0
+pytest-xdist
diff --git a/tox.ini b/tox.ini
index 9535007..74f91f6 100644
--- a/tox.ini
+++ b/tox.ini
@@ -14,7 +14,7 @@ deps =
commands =
playwright install-deps chromium firefox
camoufox fetch --browserforge
- pytest --cov=scrapling --cov-report=xml
+ pytest --cov=scrapling --cov-report=xml -n auto
[testenv:pre-commit]
basepython = python3