Commit 0505aef 1 parent aa6e43f commit 0505aef Copy full SHA for 0505aef
File tree 5 files changed +15
-14
lines changed
5 files changed +15
-14
lines changed Original file line number Diff line number Diff line change 40
40
- uses : jupyterlab/maintainer-tools/.github/actions/base-setup@v1
41
41
- name : Run Tests
42
42
run : hatch run cov:test
43
- - name : Upload coverage to Codecov
44
- uses : codecov/codecov-action@v3
43
+ - uses : jupyterlab/maintainer-tools/.github/actions/upload-coverage@v1
44
+
45
+ coverage :
46
+ runs-on : ubuntu-latest
47
+ needs :
48
+ - tests
49
+ steps :
50
+ - uses : actions/checkout@v3
51
+ - uses : jupyterlab/maintainer-tools/.github/actions/report-coverage@v1
45
52
46
53
test_minimum_versions :
47
54
name : Test Minimum Versions
@@ -137,7 +144,7 @@ jobs:
137
144
tests_check : # This job does nothing and is only used for the branch protection
138
145
if : always()
139
146
needs :
140
- - tests
147
+ - coverage
141
148
- test_lint
142
149
- test_docs
143
150
- test_minimum_versions
File renamed without changes.
Original file line number Diff line number Diff line change 2
2
3
3
[ ![ Tests] ( https://github.com/ipython/traitlets/actions/workflows/tests.yml/badge.svg )] ( https://github.com/ipython/traitlets/actions/workflows/tests.yml )
4
4
[ ![ Documentation Status] ( https://readthedocs.org/projects/traitlets/badge/?version=latest )] ( https://traitlets.readthedocs.io/en/latest/?badge=latest )
5
- [ ![ codecov] ( https://codecov.io/gh/ipython/traitlets/branch/main/graph/badge.svg?token=HcsbLGEmI1 )] ( https://codecov.io/gh/ipython/traitlets )
6
5
[ ![ Tidelift] ( https://tidelift.com/subscription/pkg/pypi-traitlets )] ( https://tidelift.com/badges/package/pypi/traitlets )
7
6
8
7
| | |
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ nowarn = "test -W default {args}"
45
45
46
46
[tool .hatch .envs .cov ]
47
47
features = [" test" ]
48
- dependencies = [" coverage" , " pytest-cov" ]
48
+ dependencies = [" coverage[toml] " , " pytest-cov" ]
49
49
[tool .hatch .envs .cov .scripts ]
50
50
test = " python -m pytest -vv --cov traitlets --cov-branch --cov-report term-missing:skip-covered {args}"
51
51
nowarn = " test -W default {args}"
@@ -137,6 +137,10 @@ exclude_lines = [
137
137
" @(abc\\ .)?abstractmethod" ,
138
138
]
139
139
140
+ [tool .coverage .run ]
141
+ relative_files = true
142
+ source = [" traitlets" ]
143
+
140
144
[tool .black ]
141
145
line-length = 100
142
146
skip-string-normalization = true
You can’t perform that action at this time.
0 commit comments