-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
👷 Rearrange pytest report after comments
Because pytest reports fail on errors, preventing comments of test failures being posted (we only ever see comments of successful test results)
- Loading branch information
Showing
1 changed file
with
20 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -932,26 +932,6 @@ jobs: | |
OUTPUT_FILE: test_output.xml | ||
COVERAGE_FILE: test_coverage.txt | ||
|
||
- name: Publish Pytest Report | ||
uses: mikepenz/action-junit-report@v5 | ||
if: steps.pytest.outcome == 'success' | ||
with: | ||
check_name: JUnit Test Report | ||
report_paths: "./pytest/test_output.xml" | ||
fail_on_failure: true | ||
detailed_summary: true | ||
require_passed_tests: true | ||
|
||
- name: Publish Pytest Regression Report | ||
uses: mikepenz/action-junit-report@v5 | ||
if: steps.pytest-init-regression.outcome == 'success' || steps.pytest-run-regression.outcome == 'success' | ||
with: | ||
check_name: JUnit Test Report Regression | ||
report_paths: "./pytest-regression/test_output.xml" | ||
fail_on_failure: true | ||
detailed_summary: true | ||
require_passed_tests: true | ||
|
||
- name: Pytest coverage comment | ||
if: steps.pytest.outcome == 'success' | ||
uses: MishaKav/[email protected] | ||
|
@@ -976,6 +956,26 @@ jobs: | |
hide-report: ${{ github.event_name != 'pull_request' }} | ||
hide-comment: ${{ github.event_name != 'pull_request' }} | ||
|
||
- name: Publish Pytest Report | ||
uses: mikepenz/action-junit-report@v5 | ||
if: steps.pytest.outcome == 'success' | ||
with: | ||
check_name: JUnit Test Report | ||
report_paths: "./pytest/test_output.xml" | ||
fail_on_failure: true | ||
detailed_summary: true | ||
require_passed_tests: true | ||
|
||
- name: Publish Pytest Regression Report | ||
uses: mikepenz/action-junit-report@v5 | ||
if: steps.pytest-init-regression.outcome == 'success' || steps.pytest-run-regression.outcome == 'success' | ||
with: | ||
check_name: JUnit Test Report Regression | ||
report_paths: "./pytest-regression/test_output.xml" | ||
fail_on_failure: true | ||
detailed_summary: true | ||
require_passed_tests: true | ||
|
||
- name: Helmfile destroy pytest | ||
uses: helmfile/[email protected] | ||
if: always() | ||
|