Skip to content

Commit

Permalink
👷 Rearrange pytest report after comments
Browse files Browse the repository at this point in the history
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
ff137 committed Dec 12, 2024
1 parent d452218 commit f875c01
Showing 1 changed file with 20 additions and 20 deletions.
40 changes: 20 additions & 20 deletions .github/workflows/continuous-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand All @@ -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()
Expand Down

0 comments on commit f875c01

Please sign in to comment.