Skip to content

Commit ebed2b3

Browse files
adding python too.
1 parent e4b1219 commit ebed2b3

File tree

4 files changed

+13
-2
lines changed

4 files changed

+13
-2
lines changed

.github/workflows/stage-2-test.yaml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,14 +124,22 @@ jobs:
124124
name: unit-tests
125125
path: test-results
126126

127-
- name: "Publish test report"
127+
- name: "Publish Jest test report"
128128
uses: dorny/test-reporter@v1
129129
with:
130130
name: Jest Test Report
131-
path: 'test-results/**/*.xml'
131+
path: 'test-results/**/junit.xml'
132132
reporter: jest-junit
133133
fail-on-error: false
134134

135+
- name: "Publish pytest test report"
136+
uses: dorny/test-reporter@v1
137+
with:
138+
name: Pytest Test Report
139+
path: 'test-results/**/pytest-report.xml'
140+
reporter: java-junit
141+
fail-on-error: false
142+
135143
test-lint:
136144
name: "Linting"
137145
runs-on: ubuntu-latest

src/asyncapigenerator/pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ addopts =
1212
--cov-report=term-missing
1313
--cov-report=xml:coverage.xml
1414
--cov-config=pytest.ini
15+
--junit-xml=.reports/unit/pytest-report.xml
1516
markers =
1617
unit: Unit tests
1718
integration: Integration tests

src/cloudeventjekylldocs/pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ addopts =
1313
--cov-report=xml:coverage.xml
1414
--cov-config=pytest.ini
1515
--cov-branch
16+
--junit-xml=.reports/unit/pytest-report.xml
1617
markers =
1718
unit: Unit tests
1819

src/eventcatalogasyncapiimporter/pytest.ini

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ addopts =
1414
-v
1515
--tb=short
1616
--strict-markers
17+
--junit-xml=.reports/unit/pytest-report.xml
1718

1819
[tool:pytest]
1920
testpaths = tests

0 commit comments

Comments
 (0)