Skip to content

Commit 8c4dfdd

Browse files
committed
Update test configuration to enable JUnit XML output and adjust pytest options
1 parent 3ce5be7 commit 8c4dfdd

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,10 @@ jobs:
260260
if: "matrix.use_coverage"
261261
run: python -m coverage xml
262262

263+
- name: Test with pytest
264+
run: |
265+
pytest --cov --junitxml=junit.xml -o junit_family=legacy
266+
263267
- name: Upload coverage to Codecov
264268
if: "matrix.use_coverage"
265269
uses: codecov/codecov-action@v5

.gitignore

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,3 @@ pip-wheel-metadata/
5757

5858
# pytest debug logs generated via --debug
5959
pytestdebug.log
60-
61-
# JUnit test result file
62-
junit.xml

tox.ini

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ setenv =
6262
coverage: _PYTEST_TOX_EXTRA_DEP=coverage-enable-subprocess
6363
coverage: COVERAGE_FILE={toxinidir}/.coverage
6464
coverage: COVERAGE_PROCESS_START={toxinidir}/.coveragerc
65-
coverage: PYTEST_ADDOPTS=--junitxml=junit.xml -o junit_family=legacy
6665

6766
doctesting: _PYTEST_TOX_POSARGS_DOCTESTING=doc/en
6867

0 commit comments

Comments
 (0)