Skip to content

Commit 3a6bfa2

Browse files
JUnit test results
1 parent fb02f8f commit 3a6bfa2

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

.github/workflows/python-tests.yml

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,18 @@ jobs:
3030
run: |
3131
pip install pytest pytest-cov
3232
33-
- name: Run pytest with coverage
33+
- name: Run pytest with coverage and generate JUnit XML
3434
run: |
35-
PYTHONPATH=$(pwd) COVERAGE_FILE=tests/python/.coverage-${{ matrix.python-version }} pytest --cov=shared/python --cov-config=tests/python/.coveragerc --cov-report=html:tests/python/htmlcov-${{ matrix.python-version }} tests/python/
35+
PYTHONPATH=$(pwd) COVERAGE_FILE=tests/python/.coverage-${{ matrix.python-version }} pytest --cov=shared/python --cov-config=tests/python/.coveragerc --cov-report=html:tests/python/htmlcov-${{ matrix.python-version }} --junitxml=tests/python/junit-${{ matrix.python-version }}.xml tests/python/
3636
3737
- name: Upload coverage HTML report
3838
uses: actions/upload-artifact@v4
3939
with:
4040
name: coverage-html-${{ matrix.python-version }}
4141
path: tests/python/htmlcov-${{ matrix.python-version }}/
42+
43+
- name: Upload JUnit test results
44+
uses: actions/upload-artifact@v4
45+
with:
46+
name: junit-results-${{ matrix.python-version }}
47+
path: tests/python/junit-${{ matrix.python-version }}.xml

0 commit comments

Comments
 (0)