coverage now is reported in cobertura format

This commit is contained in:
Jonas Depoix 2024-11-11 12:24:52 +01:00
parent 3ecdcff082
commit ed4068479c
3 changed files with 4 additions and 3 deletions

View File

@ -47,8 +47,8 @@ jobs:
- name: Report intermediate coverage report
uses: coverallsapp/github-action@v2
with:
file: .coverage
format: python
file: coverage.xml
format: cobertura
flag-name: run-python-${{ matrix.python-version }}
parallel: true

1
.gitignore vendored
View File

@ -7,4 +7,5 @@ build
*.egg-info
upload_new_version.sh
.coverage
coverage.xml
.DS_STORE

View File

@ -39,7 +39,7 @@ youtube_transcript_api = "youtube_transcript_api.__main__:main"
[tool.poe.tasks]
test = "pytest youtube_transcript_api"
ci-test.shell = "coverage run -m unittest discover"
ci-test.shell = "coverage run -m unittest discover && coverage xml"
coverage.shell = "coverage run -m unittest discover && coverage report -m"
format = "ruff format youtube_transcript_api"
ci-format = "ruff format youtube_transcript_api --check"