Skip to content

Commit

Permalink
Split summary-report into a separate step
Browse files Browse the repository at this point in the history
  • Loading branch information
TheJaeger committed Sep 12, 2024
1 parent 6972cdb commit d013c26
Showing 1 changed file with 31 additions and 6 deletions.
37 changes: 31 additions & 6 deletions .github/workflows/pydesigner_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,21 +68,51 @@ jobs:
run: docker run --name pydesigner-test-container pydesigner-test

- name: Copy test results
if: always()
run: docker cp pydesigner-test-container:/test_results/ ./test_results

- name: Upload test results
uses: actions/upload-artifact@v4
if: always()
with:
name: test-results
path: ./test_results/results.xml

- name: Upload coverage report
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: ./test_results/coverage.xml

- name: Clean up
run: |
docker container rm pydesigner-test-container
docker image rm pydesigner-test
summary-reports:
runs-on: ubuntu-latest
steps:
- name: Checkout code
id: checkout
uses: actions/checkout@v4
with:
token: ${{ secrets.GH_BRIDGE_PAT }}

- name: Download test results
uses: actions/download-artifact@v4
with:
name: test-results
path: ./test_results

- name: Download coverage report
uses: actions/download-artifact@v4
with:
name: coverage-report
path: ./test_results

- name: Code coverage summary report
if: always()
uses: irongut/[email protected]
with:
filename: ./test_results/coverage.xml
Expand All @@ -96,8 +126,8 @@ jobs:
thresholds: '10 50'

- name: Publish Coverage PR Comment
if: always()
uses: marocchino/sticky-pull-request-comment@v2
if: github.event_name == 'pull_request'
with:
recreate: true
path: code-coverage-results.md
Expand All @@ -111,8 +141,3 @@ jobs:
with:
files: |
test_results/results.xml
- name: Clean up
run: |
docker container rm pydesigner-test-container
docker image rm pydesigner-test

0 comments on commit d013c26

Please sign in to comment.