From 454b79e00f9f2834897faec7a213d4c796b97f82 Mon Sep 17 00:00:00 2001 From: Karim shoair Date: Sat, 23 Nov 2024 16:04:47 +0200 Subject: [PATCH] Make tests run in parallel on GitHub actions --- tests/requirements.txt | 1 + tox.ini | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) 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