Skip to content

Commit 19fe222

Browse files
authored
Merge pull request #43 from intergral/test_reports
chore(build): add test report action to build
2 parents a74ac8c + b61e33e commit 19fe222

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/on_push.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,24 @@ jobs:
4242
pip install -r dev-requirements.txt
4343
- run: |
4444
make coverage
45+
continue-on-error: true
46+
47+
- name: Test Report
48+
uses: dorny/[email protected]
49+
if: success() || failure()
50+
continue-on-error: true
51+
with:
52+
name: Python Tests
53+
path: report.xml
54+
reporter: java-junit
55+
56+
- name: Test Summary
57+
uses: test-summary/action@v2
58+
with:
59+
paths: |
60+
report.xml
61+
if: success() || failure()
62+
continue-on-error: true
4563

4664
tests:
4765
runs-on: ubuntu-latest

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ it-test:
2424

2525
.PHONY: coverage
2626
coverage:
27-
pytest tests/unit_tests --cov=deep --cov-report term --cov-fail-under=84 --cov-report html --cov-branch
27+
pytest tests/unit_tests --cov=deep --cov-report term --cov-fail-under=84 --cov-report html --cov-branch --junitxml=report.xml
2828

2929
.PHONY: lint
3030
lint:

0 commit comments

Comments
 (0)