Skip to content

Commit

Permalink
Update CI report format to csv
Browse files Browse the repository at this point in the history
  • Loading branch information
chuneuny-emily committed Sep 7, 2023
1 parent ec00525 commit 4ca636c
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/nightly_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,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: |
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/weekly_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down
1 change: 1 addition & 0 deletions tests/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ pytest-cov>=4.0.0
pytest-stress
pytest-html
coverage
pytest-csv
8 changes: 5 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -70,12 +72,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}]
Expand All @@ -85,4 +87,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}

0 comments on commit 4ca636c

Please sign in to comment.