ops: Adjust tox file to avoid CI issues
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user