Skip to content

Commit dc89c77

Browse files
committed
Try to cope with coverage 4➜5 DB format change
1 parent 1d125a5 commit dc89c77

File tree

2 files changed

+28
-1
lines changed

2 files changed

+28
-1
lines changed

.github/workflows/cicd.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,8 @@ jobs:
229229
- name: "Combine coverage"
230230
run: |
231231
set -eux
232-
pip install coverage[toml];
232+
# pip install coverage[toml];
233+
pip install coverage==4.5.4; # coverage 5.0 drops Python 3.4 support
233234
coverage combine;
234235
coverage xml;
235236
env:

tox.ini

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -263,6 +263,32 @@ commands =
263263
- coverage html
264264

265265

266+
##
267+
# Coverage combine (for CI)
268+
##
269+
270+
[testenv:coverage_combine]
271+
272+
description = combine coverage
273+
274+
depends = {[coverage_report]depends}
275+
276+
basepython = {[default]basepython}
277+
278+
skip_install = True
279+
280+
deps =
281+
# coverage 5.0 drops Python 3.4 support
282+
py{26,27,34,py2}: coverage==4.5.4 # rq.filter: <5
283+
py{35,36,37,38,39,py3}: coverage==5.3.1
284+
285+
setenv = {[coverage_report]setenv}
286+
287+
commands =
288+
coverage combine
289+
coverage xml
290+
291+
266292
##
267293
# Codecov
268294
##

0 commit comments

Comments
 (0)