Skip to content

Commit 883a33d

Browse files
committed
More coverage CI
1 parent 0d1205e commit 883a33d

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

.github/workflows/cicd.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,7 @@ jobs:
212212
echo "Test environment: ${env_test}";
213213
tox -e "${env_test}";
214214
tar cvzf pytest-logs.tgz ".tox/${env_test}/log";
215-
tox -e "coverage_combine-${env_test}";
216-
env:
217-
COVERAGE_FILE: .tox/coverage
215+
tox -e "coverage_xml-${py_test}";
218216
219217
- name: Upload pytest log artifact
220218
if: failure()

tox.ini

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -264,12 +264,12 @@ commands =
264264

265265

266266
##
267-
# Coverage combine (for CI)
267+
# Coverage XML
268268
##
269269

270-
[testenv:coverage_combine]
270+
[testenv:coverage_xml]
271271

272-
description = combine coverage
272+
description = generate coverage XML
273273

274274
depends = {[coverage_report]depends}
275275

@@ -282,7 +282,8 @@ deps =
282282
py{26,27,34,py2}: coverage==4.5.4 # rq.filter: <5
283283
py{35,36,37,38,39,py3}: coverage==5.3.1
284284

285-
passenv = COVERAGE_FILE
285+
setenv =
286+
{[testenv:coverage_report]setenv}
286287

287288
commands =
288289
coverage combine

0 commit comments

Comments
 (0)