File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments