Skip to content

Commit 4aa882a

Browse files
committed
pytest
1 parent 9cfb5be commit 4aa882a

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

.github/workflows/test-pytest.yaml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,13 +26,14 @@ jobs:
2626
2727
- name: Run tests with coverage
2828
run: |
29-
pytest \
30-
-k . \
31-
--cov=mqpy \
32-
--cov-append \
33-
--cov-report=term-missing:skip-covered \
34-
--junitxml=pytest.xml \
35-
-x | tee pytest-coverage.txt
29+
pytest -k . --cov=mqpy --cov-append --cov-report=term-missing:skip-covered --junitxml=pytest.xml -x | tee pytest-coverage.txt
30+
31+
- name: Generate coverage summary
32+
run: |
33+
echo "## Test Coverage Summary" > summary.md
34+
echo "```" >> summary.md
35+
type pytest-coverage.txt >> summary.md
36+
echo "```" >> summary.md
3637
3738
- name: Add coverage summary to GitHub summary
3839
run: |

0 commit comments

Comments
 (0)