Skip to content

Commit f020378

Browse files
committed
windows
1 parent e329487 commit f020378

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

.github/workflows/test-pytest.yaml

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)