3 files changed +24
-5
lines changed Original file line number Diff line number Diff line change 14
14
python-version : ${{ matrix.python-version }}
15
15
- name : Install dependencies
16
16
run : |
17
- python -m pip install --upgrade pip pytest
17
+ python -m pip install --upgrade pip pytest pytest-cov
18
18
pip install .
19
19
- name : Test with pytest
20
20
run : |
21
- pytest tests
21
+ pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=git_hg_sync tests/ | tee pytest-coverage.txt
22
+ - name : Pytest coverage comment
23
+ uses : MishaKav/pytest-coverage-comment@main
24
+ with :
25
+ pytest-coverage-path : ./pytest-coverage.txt
26
+ pytest-xml-coverage-path : ./coverage.xml
27
+ title : overage
28
+ badge-title : Coverage
29
+ hide-badge : false
30
+ hide-report : false
31
+ create-new-comment : false
32
+ hide-comment : false
33
+ report-only-changed-files : false
34
+ remove-link-from-badge : false
35
+ unique-id-for-comment : python3.10
36
+ junitxml-path : ./pytest.xml
37
+ junitxml-title : JUnit Xml Summary
Original file line number Diff line number Diff line change 1
1
clones
2
2
.tox
3
3
** /__pycache__ /
4
- config.ini
4
+ config.ini
5
+ .coverage
Original file line number Diff line number Diff line change @@ -8,8 +8,10 @@ setenv = PYTHONPATH = ""
8
8
[testenv:pytest]
9
9
changedir = tests
10
10
passenv = PULSE_PASSWORD
11
- deps = pytest
12
- commands = pytest
11
+ deps =
12
+ pytest
13
+ pytest-cov
14
+ commands = pytest --cov =git_hg_sync --cov-report =html
13
15
14
16
[testenv:lint]
15
17
description = lint source code
0 commit comments