26 lines
854 B
INI
26 lines
854 B
INI
# Tox (https://tox.readthedocs.io/) is a tool for running tests
|
|
# in multiple virtualenvs. This configuration file will run the
|
|
# test suite on all supported python versions. To use it, "pip install tox"
|
|
# and then run "tox" from this directory.
|
|
|
|
[tox]
|
|
envlist = pre-commit,py{39,310,311,312,313}
|
|
|
|
[testenv]
|
|
usedevelop = True
|
|
changedir = tests
|
|
deps =
|
|
playwright==1.52.0
|
|
rebrowser-playwright==1.52.0
|
|
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
|
|
|
|
[testenv:pre-commit]
|
|
basepython = python3
|
|
deps = pre-commit
|
|
commands = pre-commit run --all-files --show-diff-on-failure
|
|
skip_install = true |