-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
Upload junit reports codecov #13778
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Upload junit reports codecov #13778
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -276,11 +276,15 @@ jobs: | |||||
| - name: Test without coverage | ||||||
| if: "! matrix.use_coverage" | ||||||
| shell: bash | ||||||
| env: | ||||||
| JUNIT_XML_PATH: junit-${{ matrix.name }}.xml | ||||||
| run: tox run -e ${{ matrix.tox_env }} --installpkg `find dist/*.tar.gz` | ||||||
|
|
||||||
| - name: Test with coverage | ||||||
| if: "matrix.use_coverage" | ||||||
| shell: bash | ||||||
| env: | ||||||
| JUNIT_XML_PATH: junit-${{ matrix.name }}.xml | ||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
| run: tox run -e ${{ matrix.tox_env }}-coverage --installpkg `find dist/*.tar.gz` | ||||||
|
|
||||||
| - name: Generate coverage report | ||||||
|
|
@@ -295,6 +299,14 @@ jobs: | |||||
| files: ./coverage.xml | ||||||
| verbose: true | ||||||
|
|
||||||
| - name: Upload JUnit report to Codecov | ||||||
| uses: codecov/codecov-action@5a1091511ad55cbe89839c7260b706298ca349f7 | ||||||
| with: | ||||||
| fail_ci_if_error: false | ||||||
| files: junit-${{ matrix.name }}.xml | ||||||
| report_type: test_results | ||||||
| verbose: true | ||||||
|
|
||||||
| check: # This job does nothing and is only used for the branch protection | ||||||
| if: always() | ||||||
|
|
||||||
|
|
||||||
| Original file line number | Diff line number | Diff line change | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -42,8 +42,8 @@ description = | |||||||||
| under `{basepython}` | ||||||||||
| doctesting: including doctests | ||||||||||
| commands = | ||||||||||
| {env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:{env:_PYTEST_TOX_DEFAULT_POSARGS:}} | ||||||||||
| doctesting: {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest | ||||||||||
| {env:_PYTEST_TOX_COVERAGE_RUN:} pytest {posargs:{env:_PYTEST_TOX_DEFAULT_POSARGS:}} --junitxml={env:JUNIT_XML_PATH} | ||||||||||
| doctesting: {env:_PYTEST_TOX_COVERAGE_RUN:} pytest --doctest-modules --pyargs _pytest --junitxml={env:JUNIT_XML_PATH} | ||||||||||
|
Comment on lines
+45
to
+46
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| coverage: coverage combine | ||||||||||
| coverage: coverage report -m | ||||||||||
| passenv = | ||||||||||
|
|
@@ -52,6 +52,7 @@ passenv = | |||||||||
| TERM | ||||||||||
| SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST | ||||||||||
| CI | ||||||||||
| JUNIT_XML_PATH | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||||||
| setenv = | ||||||||||
| _PYTEST_TOX_DEFAULT_POSARGS={env:_PYTEST_TOX_POSARGS_DOCTESTING:} {env:_PYTEST_TOX_POSARGS_LSOF:} {env:_PYTEST_TOX_POSARGS_XDIST:} {env:_PYTEST_FILES:} | ||||||||||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I recommend integrating it here instead
Suggested change
|
||||||||||
|
|
||||||||||
|
|
||||||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.