mirror of https://github.com/scrapy/scrapy.git
Codecov: Add test analytics (#6741)
This commit is contained in:
parent
3ca882fba8
commit
e50914e0f5
|
|
@ -33,3 +33,7 @@ jobs:
|
||||||
|
|
||||||
- name: Upload coverage report
|
- name: Upload coverage report
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
|
|
||||||
|
- name: Upload test results
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
|
uses: codecov/test-results-action@v1
|
||||||
|
|
|
||||||
|
|
@ -88,3 +88,7 @@ jobs:
|
||||||
|
|
||||||
- name: Upload coverage report
|
- name: Upload coverage report
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
|
|
||||||
|
- name: Upload test results
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
|
uses: codecov/test-results-action@v1
|
||||||
|
|
|
||||||
|
|
@ -64,3 +64,7 @@ jobs:
|
||||||
|
|
||||||
- name: Upload coverage report
|
- name: Upload coverage report
|
||||||
uses: codecov/codecov-action@v5
|
uses: codecov/codecov-action@v5
|
||||||
|
|
||||||
|
- name: Upload test results
|
||||||
|
if: ${{ !cancelled() }}
|
||||||
|
uses: codecov/test-results-action@v1
|
||||||
|
|
|
||||||
|
|
@ -15,6 +15,7 @@ htmlcov/
|
||||||
.pytest_cache/
|
.pytest_cache/
|
||||||
.coverage.*
|
.coverage.*
|
||||||
coverage.*
|
coverage.*
|
||||||
|
*.junit.xml
|
||||||
test-output.*
|
test-output.*
|
||||||
.cache/
|
.cache/
|
||||||
.mypy_cache/
|
.mypy_cache/
|
||||||
|
|
|
||||||
8
tox.ini
8
tox.ini
|
|
@ -39,7 +39,7 @@ passenv =
|
||||||
#allow tox virtualenv to upgrade pip/wheel/setuptools
|
#allow tox virtualenv to upgrade pip/wheel/setuptools
|
||||||
download = true
|
download = true
|
||||||
commands =
|
commands =
|
||||||
pytest {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report= --cov-report=term-missing --cov-report=xml --durations=10 docs scrapy tests --doctest-modules}
|
pytest {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 docs scrapy tests --doctest-modules}
|
||||||
install_command =
|
install_command =
|
||||||
python -I -m pip install -ctests/upper-constraints.txt {opts} {packages}
|
python -I -m pip install -ctests/upper-constraints.txt {opts} {packages}
|
||||||
|
|
||||||
|
|
@ -118,7 +118,7 @@ install_command =
|
||||||
python -I -m pip install {opts} {packages}
|
python -I -m pip install {opts} {packages}
|
||||||
commands =
|
commands =
|
||||||
; tests for docs fail with parsel < 1.8.0
|
; tests for docs fail with parsel < 1.8.0
|
||||||
pytest {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report=xml --cov-report= --durations=10 scrapy tests}
|
pytest {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report=xml --cov-report= --junitxml=pinned.junit.xml -o junit_family=legacy --durations=10 scrapy tests}
|
||||||
|
|
||||||
[testenv:pinned]
|
[testenv:pinned]
|
||||||
basepython = {[pinned]basepython}
|
basepython = {[pinned]basepython}
|
||||||
|
|
@ -254,7 +254,7 @@ deps =
|
||||||
{[testenv]deps}
|
{[testenv]deps}
|
||||||
botocore>=1.4.87
|
botocore>=1.4.87
|
||||||
commands =
|
commands =
|
||||||
pytest {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report=xml --cov-report= tests -m requires_botocore}
|
pytest {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report=xml --cov-report= tests --junitxml=botocore.junit.xml -o junit_family=legacy -m requires_botocore}
|
||||||
|
|
||||||
[testenv:botocore-pinned]
|
[testenv:botocore-pinned]
|
||||||
basepython = {[pinned]basepython}
|
basepython = {[pinned]basepython}
|
||||||
|
|
@ -265,4 +265,4 @@ install_command = {[pinned]install_command}
|
||||||
setenv =
|
setenv =
|
||||||
{[pinned]setenv}
|
{[pinned]setenv}
|
||||||
commands =
|
commands =
|
||||||
pytest {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report=xml --cov-report= tests -m requires_botocore}
|
pytest {posargs:--cov-config=pyproject.toml --cov=scrapy --cov-report=xml --cov-report= tests --junitxml=botocore-pinned.junit.xml -o junit_family=legacy -m requires_botocore}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue