Skip to content

Commit f001546

Browse files
ci(test-report): add test report genetating to PR comments on every tests run for more readable and clear testing results
1 parent dd6f451 commit f001546

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/lint-and-test.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,16 @@ jobs:
107107
poetry run pytest \
108108
--cov=c2pie \
109109
-m "not e2e" \
110-
--maxfail=1 \
110+
--junit-xml=test-report.xml \
111111
-v
112112
113+
- name: Publish test report
114+
uses: dorny/test-reporter@v1
115+
if: always()
116+
with:
117+
path: test-report.xml
118+
reporter: python-xunit
119+
113120
- name: Upload coverage artifact
114121
if: (matrix.python-version == '3.12') && (matrix.os == 'ubuntu-latest')
115122
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)