File tree Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Expand file tree Collapse file tree 2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 5555 - name : Install the project
5656 run : uv sync ${{ matrix.dep-resolution.install-flags }} --all-extras --python ${{ matrix.python-version }}
5757
58- - name : Run pytest
59- run : uv run ${{ matrix.dep-resolution.install-flags }} --no-sync pytest
58+ - name : Run pytest with coverage
59+ run : |
60+ uv run ${{ matrix.dep-resolution.install-flags }} --no-sync coverage run -m pytest
61+ uv run ${{ matrix.dep-resolution.install-flags }} --no-sync coverage combine
62+ uv run ${{ matrix.dep-resolution.install-flags }} --no-sync coverage report
6063 env :
6164 UV_RESOLUTION : ${{ matrix.dep-resolution.name == 'lowest-direct' && 'lowest-direct' || 'highest' }}
6265
Original file line number Diff line number Diff line change @@ -176,6 +176,7 @@ branch = true
176176patch = [" subprocess" ]
177177concurrency = [" multiprocessing" , " thread" ]
178178source = [" src" , " tests" ]
179+ relative_files = true
179180
180181# https://coverage.readthedocs.io/en/latest/config.html#report
181182[tool .coverage .report ]
@@ -193,3 +194,11 @@ exclude_lines = [
193194exclude_also = [
194195 ' \A(?s:.*# pragma: exclude file.*)\Z'
195196]
197+
198+ # https://coverage.readthedocs.io/en/latest/config.html#paths
199+ [tool .coverage .paths ]
200+ source = [
201+ " src/" ,
202+ " /home/runner/work/python-sdk/python-sdk/src/" ,
203+ ' D:\a\python-sdk\python-sdk\src' ,
204+ ]
You can’t perform that action at this time.
0 commit comments