File tree Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Expand file tree Collapse file tree 3 files changed +28
-4
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,9 @@ name: 'Build and Test'
33on : [push, pull_request, workflow_dispatch]
44
55env :
6+ COVERAGE_CORE : sysmon
7+ FORCE_COLOR : 1
68 PIP_DISABLE_PIP_VERSION_CHECK : true
7- PIP_NO_COLOR : true
89 PIP_NO_INPUT : true
910 PIP_PROGRESS_BAR : off
1011 PIP_REQUIRE_VIRTUALENV : false
@@ -38,13 +39,22 @@ jobs:
3839 run : python -m pip install pymsbuild
3940
4041 - name : ' Install test runner'
41- run : python -m pip install pytest
42+ run : python -m pip install pytest pytest-cov
4243
4344 - name : ' Build test module'
4445 run : python -m pymsbuild -c _msbuild_test.py
4546
4647 - name : ' Run pre-test'
47- run : python -m pytest -vv
48+ shell : bash
49+ run : |
50+ python -m pytest -vv \
51+ --cov src \
52+ --cov tests \
53+ --cov-report term \
54+ --cov-report xml
55+
56+ - name : ' Upload coverage'
57+ uses : codecov/codecov-action@v5
4858
4959 - name : ' Build package'
5060 run : python make.py
Original file line number Diff line number Diff line change 11# Python Install Manager
22
3+ [ ![ Codecov] ( https://codecov.io/gh/python/pymanager/graph/badge.svg )] ( https://codecov.io/gh/python/pymanager )
4+
35This is the source code for the Python Install Manager app.
46
57For information about how to use the Python install manager,
Original file line number Diff line number Diff line change 11[build-system ]
22requires = [' pymsbuild>=1.1.1,<2.0' ]
3- build-backend = " pymsbuild"
3+ build-backend = " pymsbuild"
4+
5+ [tool .coverage .run ]
6+ branch = true
7+ disable_warnings = [
8+ " no-sysmon" ,
9+ ]
10+ omit = [
11+ " src/manage/__main__.py" ,
12+ ]
13+
14+ [tool .coverage .html ]
15+ show_contexts = true
You can’t perform that action at this time.
0 commit comments