5555 dotnet-quality : ' ga'
5656
5757 - name : Merge coverage reports
58- if : success() || failure()
58+ if : success() || failure() && ${{ matrix.python-version }} == '3.10'
5959 uses : danielpalme/ReportGenerator-GitHub-Action@v5
6060 with :
6161 reports : tests_reports/**/coverage.xml
6464
6565
6666 - name : coverage report
67- if : success() || failure()
67+ if : success() || failure() && ${{ matrix.python-version }} == '3.10'
6868 uses : irongut/CodeCoverageSummary@v1.3.0
6969 with :
7070 filename : coverage-report/Cobertura.xml
@@ -75,11 +75,11 @@ jobs:
7575 hide_complexity : true
7676
7777 - name : Rename coverage report
78- if : success() || failure()
78+ if : success() || failure() && ${{ matrix.python-version }} == '3.10'
7979 run : mv code-coverage-results.md coverage-report/coverage.${{ matrix.python-version }}.md
8080
8181 - name : upload code coverage report
82- if : success() || failure()
82+ if : success() || failure() && ${{ matrix.python-version }} == '3.10'
8383 uses : actions/upload-artifact@v4
8484 with :
8585 name : code-coverage-report-${{ matrix.python-version }}
@@ -102,7 +102,7 @@ jobs:
102102 with :
103103 script : |
104104 const fs = require('fs');
105- const coverage = fs.readFileSync('coverage-report/coverage.3.10.md', 'utf8');
105+ const coverage = fs.readFileSync('code- coverage-report-3.10 /coverage.3.10.md', 'utf8');
106106 const releaseBody = `${coverage}\n\n${context.payload.release.body}`;
107107 github.rest.repos.updateRelease({
108108 owner: context.repo.owner,
@@ -111,6 +111,11 @@ jobs:
111111 body: releaseBody
112112 });
113113
114+ - name : delete artifact
115+ uses : actions/delete-artifact@v5
116+ with :
117+ name : code-coverage-report-3.10
118+
114119 build :
115120 runs-on : ubuntu-latest
116121 needs : test
0 commit comments