mirror of https://github.com/scrapy/scrapy.git
Add delta push after every delta run in tox environments
Envs that use {[testenv]commands} or {[min]commands} substitution with
extra pytest args (--reactor=default, -p no:twisted --reactor=none) were
expanded explicitly to prevent extra args being appended to delta push.
Affected environments:
- [testenv] → delta run + delta push
- [min] → delta run + delta push
- [testenv:default-reactor] → expanded, delta push added
- [testenv:min-default-reactor] → expanded, delta push added
- [testenv:no-reactor] → expanded, delta push added
- [testenv:no-reactor-extra-deps] → expanded, delta push added
- [testenv:min-no-reactor] → expanded, delta push added
This commit is contained in:
parent
2c0fb8fd6b
commit
233069fc7f
19
tox.ini
19
tox.ini
|
|
@ -67,6 +67,7 @@ passenv =
|
|||
download = true
|
||||
commands =
|
||||
delta run -- {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report= --cov-report=term-missing --cov-report=xml --junitxml=testenv.junit.xml -o junit_family=legacy --durations=10 tests --doctest-modules}
|
||||
delta push
|
||||
|
||||
[testenv:mypy]
|
||||
basepython = python3.10
|
||||
|
|
@ -164,6 +165,7 @@ setenv =
|
|||
_SCRAPY_MIN=true
|
||||
commands =
|
||||
delta run -- {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report=xml --cov-report= --junitxml=min.junit.xml -o junit_family=legacy --durations=10 scrapy tests}
|
||||
delta push
|
||||
|
||||
[testenv:min]
|
||||
basepython = {[min]basepython}
|
||||
|
|
@ -213,12 +215,15 @@ commands = {[min]commands}
|
|||
|
||||
[testenv:default-reactor]
|
||||
commands =
|
||||
{[testenv]commands} --reactor=default
|
||||
delta run -- {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report= --cov-report=term-missing --cov-report=xml --junitxml=testenv.junit.xml -o junit_family=legacy --durations=10 tests --doctest-modules} --reactor=default
|
||||
delta push
|
||||
|
||||
[testenv:min-default-reactor]
|
||||
basepython = {[min]basepython}
|
||||
deps = {[testenv:min]deps}
|
||||
commands = {[min]commands} --reactor=default
|
||||
commands =
|
||||
delta run -- {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report=xml --cov-report= --junitxml=min.junit.xml -o junit_family=legacy --durations=10 scrapy tests} --reactor=default
|
||||
delta push
|
||||
setenv =
|
||||
{[min]setenv}
|
||||
|
||||
|
|
@ -227,21 +232,25 @@ deps =
|
|||
{[testenv]deps}
|
||||
pytest-asyncio
|
||||
commands =
|
||||
{[testenv]commands} -p no:twisted --reactor=none
|
||||
delta run -- {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report= --cov-report=term-missing --cov-report=xml --junitxml=testenv.junit.xml -o junit_family=legacy --durations=10 tests --doctest-modules} -p no:twisted --reactor=none
|
||||
delta push
|
||||
|
||||
[testenv:no-reactor-extra-deps]
|
||||
deps =
|
||||
{[testenv:extra-deps]deps}
|
||||
pytest-asyncio
|
||||
commands =
|
||||
{[testenv]commands} -p no:twisted --reactor=none
|
||||
delta run -- {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report= --cov-report=term-missing --cov-report=xml --junitxml=testenv.junit.xml -o junit_family=legacy --durations=10 tests --doctest-modules} -p no:twisted --reactor=none
|
||||
delta push
|
||||
|
||||
[testenv:min-no-reactor]
|
||||
basepython = {[min]basepython}
|
||||
deps =
|
||||
{[testenv:min]deps}
|
||||
pytest-asyncio
|
||||
commands = {[min]commands} -p no:twisted --reactor=none
|
||||
commands =
|
||||
delta run -- {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report=xml --cov-report= --junitxml=min.junit.xml -o junit_family=legacy --durations=10 scrapy tests} -p no:twisted --reactor=none
|
||||
delta push
|
||||
setenv =
|
||||
{[min]setenv}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue