File tree 3 files changed +16
-2
lines changed
3 files changed +16
-2
lines changed Original file line number Diff line number Diff line change
1
+ [run]
2
+ omit =
3
+ example/*
4
+ tests/*
5
+ setup.py
Original file line number Diff line number Diff line change 55
55
- name : List installed packages
56
56
run : pip list
57
57
- name : Run unit tests
58
- run : |
59
- pytest --verbose
58
+ run : pytest --verbose --cov=./ --cov-report=xml
59
+ - name : Upload coverage reports to Codecov
60
+ if : matrix.os == 'ubuntu-latest' && matrix.python-version == '3.9'
61
+ uses : codecov/codecov-action@v1
62
+ with :
63
+ file : ./coverage.xml
64
+ flags : unittests
65
+ env_vars : OS,PYTHON
66
+ name : codecov-umbrella
67
+ fail_ci_if_error : true
60
68
61
69
examples :
62
70
name : ' Run examples'
Original file line number Diff line number Diff line change 45
45
"dev" : [
46
46
# For test
47
47
"pytest>=6.2.4,<7.0.0" ,
48
+ "pytest-cov>=2.11.1,<3.0.0" ,
48
49
# For lint
49
50
"black>=21.5b0,<22.0" ,
50
51
"flake8>=3.9.1,<4.0.0" ,
You can’t perform that action at this time.
0 commit comments