Skip to content

Commit 9228769

Browse files
committed
Coverage not showing everything?
1 parent 8712452 commit 9228769

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

.coveragerc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
[run]
55
branch = True
66
cover_pylib = False
7-
concurrency = multiprocessing
7+
concurrency = thread,multiprocessing
88
data_file = .coverage
99
disable_warnings =
1010
trace-changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ permissions:
1515

1616
jobs:
1717
test-unit:
18+
env:
19+
COVERAGE_PROCESS_START: .coveragerc
1820
# needs: lint
1921
runs-on: ubuntu-latest
2022
timeout-minutes: 10
@@ -52,8 +54,8 @@ jobs:
5254
5355
- name: Coverage report
5456
run: |
55-
coverage xml
5657
coverage report
58+
coverage xml
5759
5860
- name: Upload coverage artifact
5961
uses: actions/upload-artifact@v4
@@ -63,6 +65,8 @@ jobs:
6365
retention-days: 7
6466

6567
test-integration:
68+
env:
69+
COVERAGE_PROCESS_START: .coveragerc
6670
runs-on: ubuntu-latest
6771
timeout-minutes: 10
6872

@@ -124,8 +128,8 @@ jobs:
124128
125129
- name: Coverage report
126130
run: |
127-
coverage xml
128131
coverage report
132+
coverage xml
129133
130134
- name: Upload coverage artifact
131135
uses: actions/upload-artifact@v4
@@ -170,8 +174,8 @@ jobs:
170174
171175
- name: Coverage report
172176
run: |
173-
coverage xml
174177
coverage report
178+
coverage xml
175179
176180
- name: Upload coverage artifact
177181
uses: actions/upload-artifact@v4
@@ -223,8 +227,8 @@ jobs:
223227
224228
- name: Coverage report
225229
run: |
226-
coverage xml
227230
coverage report
231+
coverage xml
228232
229233
- name: Upload coverage artifact
230234
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)