@@ -91,7 +91,7 @@ Add this action to your workflow:
9191
9292``` yaml
9393- name : Pytest coverage comment
94- uses : MishaKav/pytest-coverage-comment@main
94+ uses : MishaKav/pytest-coverage-comment@v1
9595 with :
9696 pytest-coverage-path : ./pytest-coverage.txt
9797 junitxml-path : ./pytest.xml
@@ -115,10 +115,10 @@ jobs:
115115 test :
116116 runs-on : ubuntu-latest
117117 steps :
118- - uses : actions/checkout@v4
118+ - uses : actions/checkout@v6
119119
120120 - name : Set up Python
121- uses : actions/setup-python@v5
121+ uses : actions/setup-python@v6
122122 with :
123123 python-version : 3.11
124124
@@ -131,7 +131,7 @@ jobs:
131131 pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=src tests/ | tee pytest-coverage.txt
132132
133133 - name : Pytest coverage comment
134- uses : MishaKav/pytest-coverage-comment@main
134+ uses : MishaKav/pytest-coverage-comment@v1
135135 with :
136136 pytest-coverage-path : ./pytest-coverage.txt
137137 junitxml-path : ./pytest.xml
@@ -167,6 +167,7 @@ jobs:
167167| `hide-badge` | `false` | Hide the coverage percentage badge from the comment |
168168| `hide-report` | `false` | Hide the detailed coverage table (show only summary and badge) |
169169| `hide-comment` | `false` | Skip creating PR comment entirely (useful for using outputs only) |
170+ | `hide-emoji` | `false` | Hide emojis from the test summary table |
170171| `report-only-changed-files` | `false` | Show only files changed in the current pull request |
171172| `xml-skip-covered` | `false` | Hide files with 100% coverage from XML coverage reports |
172173| `remove-link-from-badge` | `false` | Remove hyperlink from coverage badge (badge becomes plain image) |
@@ -223,7 +224,7 @@ jobs:
223224 pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=src tests/ | tee pytest-coverage.txt
224225
225226- name: Coverage comment
226- uses: MishaKav/pytest-coverage-comment@main
227+ uses: MishaKav/pytest-coverage-comment@v1
227228 with:
228229 pytest-coverage-path: ./pytest-coverage.txt
229230 junitxml-path: ./pytest.xml
@@ -242,7 +243,7 @@ jobs:
242243 pytest --cov-report=xml:coverage.xml --cov=src tests/
243244
244245- name: Coverage comment
245- uses: MishaKav/pytest-coverage-comment@main
246+ uses: MishaKav/pytest-coverage-comment@v1
246247 with:
247248 pytest-xml-coverage-path: ./coverage.xml
248249 junitxml-path: ./pytest.xml
@@ -257,7 +258,7 @@ jobs:
257258
258259` ` ` yaml
259260- name: Coverage comment
260- uses: MishaKav/pytest-coverage-comment@main
261+ uses: MishaKav/pytest-coverage-comment@v1
261262 with:
262263 multiple-files: |
263264 Backend API, ./backend/pytest-coverage.txt, ./backend/pytest.xml
@@ -279,6 +280,32 @@ This creates a consolidated table showing all coverage reports:
279280
280281</details>
281282
283+ # ## Clean Summary Without Emojis
284+
285+ <details>
286+ <summary>Hide emojis for a cleaner appearance</summary>
287+
288+ ` ` ` yaml
289+ - name: Coverage comment
290+ uses: MishaKav/pytest-coverage-comment@v1
291+ with:
292+ pytest-coverage-path: ./pytest-coverage.txt
293+ junitxml-path: ./pytest.xml
294+ hide-emoji: true
295+ ` ` `
296+
297+ **Default behavior** (with emojis):
298+ | Tests | Skipped | Failures | Errors | Time |
299+ | ----- | ------- | -------- | ------ | ---- |
300+ | 109 | 2 :zzz : | 1 :x: | 0 :fire: | 0.583s :stopwatch: |
301+
302+ **With `hide-emoji: true`**:
303+ | Tests | Skipped | Failures | Errors | Time |
304+ | ----- | ------- | -------- | ------ | ---- |
305+ | 109 | 2 | 1 | 0 | 0.583s |
306+
307+ </details>
308+
282309# ## Docker Workflows
283310
284311<details>
@@ -294,7 +321,7 @@ This creates a consolidated table showing all coverage reports:
294321 --cov=src tests/ | tee /tmp/pytest-coverage.txt
295322
296323- name: Coverage comment
297- uses: MishaKav/pytest-coverage-comment@main
324+ uses: MishaKav/pytest-coverage-comment@v1
298325 with:
299326 pytest-coverage-path: /tmp/pytest-coverage.txt
300327 junitxml-path: /tmp/pytest.xml
@@ -315,7 +342,7 @@ strategy:
315342
316343steps:
317344 - name: Coverage comment
318- uses: MishaKav/pytest-coverage-comment@main
345+ uses: MishaKav/pytest-coverage-comment@v1
319346 with:
320347 pytest-coverage-path: ./pytest-coverage.txt
321348 junitxml-path: ./pytest.xml
@@ -352,7 +379,7 @@ jobs:
352379 update-badge:
353380 runs-on: ubuntu-latest
354381 steps:
355- - uses: actions/checkout@v4
382+ - uses: actions/checkout@v6
356383 with:
357384 persist-credentials: false
358385 fetch-depth: 0
@@ -363,7 +390,7 @@ jobs:
363390
364391 - name: Coverage comment
365392 id: coverage
366- uses: MishaKav/pytest-coverage-comment@main
393+ uses: MishaKav/pytest-coverage-comment@v1
367394 with:
368395 pytest-coverage-path: ./pytest-coverage.txt
369396 junitxml-path: ./pytest.xml
@@ -399,7 +426,7 @@ Here's what the generated coverage comment looks like:
399426
400427` ` ` yaml
401428- name: Coverage comment
402- uses: MishaKav/pytest-coverage-comment@main
429+ uses: MishaKav/pytest-coverage-comment@v1
403430 with:
404431 pytest-coverage-path: ./pytest-coverage.txt
405432 junitxml-path: ./pytest.xml
@@ -416,7 +443,7 @@ Displays coverage as `85% (42/50)` instead of a badge image.
416443` ` ` yaml
417444- name: Coverage comment
418445 id: coverage
419- uses: MishaKav/pytest-coverage-comment@main
446+ uses: MishaKav/pytest-coverage-comment@v1
420447 with:
421448 pytest-coverage-path: ./pytest-coverage.txt
422449 junitxml-path: ./pytest.xml
@@ -445,7 +472,7 @@ Displays coverage as `85% (42/50)` instead of a badge image.
445472
446473` ` ` yaml
447474- name: Coverage comment (changed files only)
448- uses: MishaKav/pytest-coverage-comment@main
475+ uses: MishaKav/pytest-coverage-comment@v1
449476 with:
450477 pytest-coverage-path: ./pytest-coverage.txt
451478 junitxml-path: ./pytest.xml
@@ -473,7 +500,7 @@ jobs:
473500 runs-on: ubuntu-latest
474501 steps:
475502 - name: Coverage comment
476- uses: MishaKav/pytest-coverage-comment@main
503+ uses: MishaKav/pytest-coverage-comment@v1
477504 with:
478505 pytest-coverage-path: ./pytest-coverage.txt
479506 junitxml-path: ./pytest.xml
@@ -489,7 +516,7 @@ For large coverage reports that might exceed GitHub's comment size limits:
489516
490517` ` ` yaml
491518- name: Coverage comment
492- uses: MishaKav/pytest-coverage-comment@main
519+ uses: MishaKav/pytest-coverage-comment@v1
493520 with:
494521 pytest-coverage-path: ./pytest-coverage.txt
495522 junitxml-path: ./pytest.xml
0 commit comments