ops: Adjust tox file to avoid CI issues
This commit is contained in:
@@ -15,9 +15,12 @@ deps =
|
|||||||
camoufox
|
camoufox
|
||||||
-r{toxinidir}/tests/requirements.txt
|
-r{toxinidir}/tests/requirements.txt
|
||||||
commands =
|
commands =
|
||||||
# Test async tests without parallelization to escape Github CI issues with nested loops
|
# Run browser tests without parallelization (avoid browser conflicts)
|
||||||
pytest --cov=scrapling --cov-report=xml -m "asyncio" --verbose
|
pytest --cov=scrapling --cov-report=xml -k "DynamicFetcher or StealthyFetcher" --verbose
|
||||||
pytest --cov=scrapling --cov-report=xml -m "not asyncio" -n auto --cov-append
|
# 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]
|
[testenv:pre-commit]
|
||||||
basepython = python3
|
basepython = python3
|
||||||
|
|||||||
Reference in New Issue
Block a user