Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4de8e8c

Browse files
committed
Merge coverage info.
1 parent 54de975 commit 4de8e8c

3 files changed

Lines changed: 32 additions & 4 deletions

File tree

.coveragerc

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/workflows/build.yml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,5 +27,28 @@ jobs:
2727
python -mpip install .
2828
- name: Test
2929
run: |
30-
python -mpytest --cov --cov-branch
30+
pyver="$(python -c 'import sys; print("{0.major}.{0.minor}".format(sys.version_info))')" &&
31+
COVERAGE_FILE=".coverage.$pyver" python -mpytest --cov --cov-branch
32+
- name: Upload coverage
33+
uses: actions/upload-artifact@v2
34+
with:
35+
name: coverage
36+
path: .coverage.*
37+
38+
coverage:
39+
runs-on: ubuntu-latest
40+
needs: build
41+
steps:
42+
- uses: actions/checkout@v2
43+
- uses: actions/setup-python@v2
44+
with:
45+
python-version: "3.10"
46+
- name: Download coverage
47+
uses: actions/download-artifact@v2
48+
with:
49+
name: coverage
50+
- name: Coverage
51+
run: |
52+
python -mpip install --upgrade coverage &&
53+
python -mcoverage combine .coverage.* && # Unifies paths across envs.
3154
python -mcoverage report --show-missing

setup.cfg

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
[coverage:run]
2+
branch = true
3+
source = ipython_autoimport
4+
5+
[coverage:paths]
6+
source =
7+
lib/
8+
/**/python*/site-packages/

0 commit comments

Comments
 (0)