ops: Adjust tox file to avoid CI issues

This commit is contained in:
Karim shoair
2025-06-28 18:12:38 +03:00
parent ac3db69c47
commit b02f0bd236
+6 -3
View File
@@ -15,9 +15,12 @@ deps =
camoufox
-r{toxinidir}/tests/requirements.txt
commands =
# Test async tests without parallelization to escape Github CI issues with nested loops
pytest --cov=scrapling --cov-report=xml -m "asyncio" --verbose
pytest --cov=scrapling --cov-report=xml -m "not asyncio" -n auto --cov-append
# Run browser tests without parallelization (avoid browser conflicts)
pytest --cov=scrapling --cov-report=xml -k "DynamicFetcher or StealthyFetcher" --verbose
# Run asyncio tests without parallelization (avoid GitHub CI nested loop issues)
pytest --cov=scrapling --cov-report=xml -m "asyncio" -k "not (DynamicFetcher or StealthyFetcher)" --verbose --cov-append
# Run everything else with parallelization (for speed)
pytest --cov=scrapling --cov-report=xml -m "not asyncio" -k "not (DynamicFetcher or StealthyFetcher)" -n auto --cov-append
[testenv:pre-commit]
basepython = python3