From 0c04ad9c13ad3ba88704ea14cc8f2e7f9e24ab74 Mon Sep 17 00:00:00 2001 From: "Chun, Emily" Date: Wed, 19 Jul 2023 10:44:34 +0900 Subject: [PATCH] Update CI report format --- .github/workflows/nightly_check.yml | 2 +- .github/workflows/weekly_check.yml | 2 +- tests/requirements.txt | 1 + tox.ini | 8 +++++--- 4 files changed, 8 insertions(+), 5 deletions(-) diff --git a/.github/workflows/nightly_check.yml b/.github/workflows/nightly_check.yml index d3d325e4ff..b8eb79a33b 100644 --- a/.github/workflows/nightly_check.yml +++ b/.github/workflows/nightly_check.yml @@ -48,7 +48,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: nightly-results-py${{ matrix.tox-env-py }}-${{ matrix.tox-env-os }} - path: .tox/results-tests-py${{ matrix.tox-env-py }}-${{ matrix.tox-env-os }}.xml + path: .tox/results-tests-py${{ matrix.tox-env-py }}-${{ matrix.tox-env-os }}.csv call-notify-to-teams: needs: [nightly_regression_test] if: | diff --git a/.github/workflows/weekly_check.yml b/.github/workflows/weekly_check.yml index 5ebcafc035..256d83808d 100644 --- a/.github/workflows/weekly_check.yml +++ b/.github/workflows/weekly_check.yml @@ -48,7 +48,7 @@ jobs: uses: actions/upload-artifact@v3 with: name: results-stability-${{ matrix.tox-env-os }} - path: .tox/results-stability-${{ matrix.tox-env-os }}.xml + path: .tox/results-stability-${{ matrix.tox-env-os }}.csv call-notify-to-teams: needs: [weekly_stability_test] if: | diff --git a/tests/requirements.txt b/tests/requirements.txt index 3b1cbda5b5..4a0346e718 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -6,3 +6,4 @@ pytest-cov>=4.0.0 pytest-stress pytest-html coverage +pytest-csv diff --git a/tox.ini b/tox.ini index 0ae0153ca1..b0c4273b96 100644 --- a/tox.ini +++ b/tox.ini @@ -2,6 +2,8 @@ isolated_build = true skip_missing_interpreters = true +[pytest] +addopts = --csv=.tox/tests-{env:TOXENV_OS}-{env:TOXENV_PYVER}.csv [testenv] passenv = @@ -69,12 +71,12 @@ commands = [testenv:tests-py{38,39,310,311}-{darwin,lin,win}] commands = - python -m pytest -v --junitxml={toxworkdir}/results-{envname}.xml {posargs:tests} + python -m pytest -v --csv={toxworkdir}/results-{envname}.csv {posargs:tests} [testenv:validation] commands = - python -m pytest -v --junitxml={toxworkdir}/results_val_{envname}.xml -m {posargs:v1_3_0} + python -m pytest -v --csv={toxworkdir}/results_val_{envname}.csv -m {posargs:v1_3_0} [testenv:stability-{darwin,lin,win}] @@ -84,4 +86,4 @@ deps = commands_pre = python -m pip uninstall pytest-stress -y commands = - python -m pytest -v --junitxml={toxworkdir}/results-{envname}.xml -x {posargs:--loop 5} + python -m pytest -v --csv={toxworkdir}/results-{envname}.csv -x {posargs:--loop 5}