File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -30,12 +30,10 @@ jobs:
3030 pytest -k . --cov=mqpy --cov-append --cov-report=term-missing:skip-covered --junitxml=pytest.xml -x | tee pytest-coverage.txt
3131
3232 - name : Generate coverage summary
33+ shell : pwsh
3334 run : |
34- echo "## Test Coverage Summary" > summary.md
35- echo "```" >> summary.md
36- type pytest-coverage.txt >> summary.md
37- echo "```" >> summary.md
38-
39- - name : Add coverage summary to GitHub summary
40- run : |
41- type summary.md >> $env:GITHUB_STEP_SUMMARY
35+ "## Test Coverage Summary" | Out-File -FilePath summary.md -Encoding utf8
36+ "```" | Out-File -FilePath summary.md -Append -Encoding utf8
37+ Get-Content pytest-coverage.txt | Out-File -FilePath summary.md -Append -Encoding utf8
38+ "```" | Out-File -FilePath summary.md -Append -Encoding utf8
39+ Get-Content summary.md | Out-File -FilePath $env:GITHUB_STEP_SUMMARY -Append -Encoding utf8
You can’t perform that action at this time.
0 commit comments