Skip to content

Commit

Permalink
Refactor coverage comment in ci
Browse files Browse the repository at this point in the history
  • Loading branch information
draincoder committed Mar 4, 2024
1 parent 308a01c commit ca6beee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -72,10 +72,11 @@ jobs:
run: echo "PYTHONPATH=$PWD" >> $GITHUB_ENV

- name: Run tests
run: pdm run pytest tests --cov=asgi_monitor --junitxml=pytest.xml | tee pytest-coverage.txt; exit ${PIPESTATUS[0]}
run: pdm run pytest tests --cov=asgi_monitor --junitxml=junitxml.xml --cov-report "xml:coverage.xml"; exit ${PIPESTATUS[0]}

- name: Test coverage comment
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml
pytest-xml-coverage-path: ./coverage.xml
junitxml-path: ./junitxml.xml
create-new-comment: true
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ htmlcov/
.cache
nosetests.xml
coverage.xml
pytest.xml
pytest-coverage.txt
junitxml.xml
*.cover
*.py,cover
.hypothesis/
Expand Down

3 comments on commit ca6beee

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/asgi_monitor
   __init__.py00100% 
src/asgi_monitor/integrations
   __init__.py00100% 
   fastapi.py160100% 
   starlette.py98198%110
src/asgi_monitor/logging
   __init__.py20100% 
   _default_processors.py80100% 
   _trace_processor.py190100% 
   configure.py250100% 
src/asgi_monitor/logging/gunicorn
   __init__.py30100% 
   logger.py10460%11, 22–24
   worker.py140100% 
src/asgi_monitor/logging/uvicorn
   __init__.py20100% 
   log_config.py470100% 
   worker.py28292%22, 27
src/asgi_monitor/metrics
   __init__.py20100% 
   container.py380100% 
   get_latest.py210100% 
   manager.py200100% 
src/asgi_monitor/tracing
   __init__.py20100% 
   config.py160100% 
   middleware.py70100% 
TOTAL378798% 

Tests Skipped Failures Errors Time
37 0 💤 0 ❌ 0 🔥 4.645s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/asgi_monitor
   __init__.py00100% 
src/asgi_monitor/integrations
   __init__.py00100% 
   fastapi.py160100% 
   starlette.py98198%110
src/asgi_monitor/logging
   __init__.py20100% 
   _default_processors.py80100% 
   _trace_processor.py190100% 
   configure.py250100% 
src/asgi_monitor/logging/gunicorn
   __init__.py30100% 
   logger.py10460%11, 22–24
   worker.py140100% 
src/asgi_monitor/logging/uvicorn
   __init__.py20100% 
   log_config.py470100% 
   worker.py28292%22, 27
src/asgi_monitor/metrics
   __init__.py20100% 
   container.py380100% 
   get_latest.py210100% 
   manager.py200100% 
src/asgi_monitor/tracing
   __init__.py20100% 
   config.py160100% 
   middleware.py70100% 
TOTAL378798% 

Tests Skipped Failures Errors Time
37 0 💤 0 ❌ 0 🔥 6.491s ⏱️

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coverage

Coverage Report
FileStmtsMissCoverMissing
src/asgi_monitor
   __init__.py00100% 
src/asgi_monitor/integrations
   __init__.py00100% 
   fastapi.py160100% 
   starlette.py98198%110
src/asgi_monitor/logging
   __init__.py20100% 
   _default_processors.py80100% 
   _trace_processor.py190100% 
   configure.py250100% 
src/asgi_monitor/logging/gunicorn
   __init__.py30100% 
   logger.py10460%11, 22–24
   worker.py140100% 
src/asgi_monitor/logging/uvicorn
   __init__.py20100% 
   log_config.py470100% 
   worker.py28292%22, 27
src/asgi_monitor/metrics
   __init__.py20100% 
   container.py380100% 
   get_latest.py210100% 
   manager.py200100% 
src/asgi_monitor/tracing
   __init__.py20100% 
   config.py160100% 
   middleware.py70100% 
TOTAL378798% 

Tests Skipped Failures Errors Time
37 0 💤 0 ❌ 0 🔥 4.488s ⏱️

Please sign in to comment.