From 14698b177b8c83209edd35e17fa63ade4a5776ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sviatoslav=20Sydorenko=20=28=D0=A1=D0=B2=D1=8F=D1=82=D0=BE?= =?UTF-8?q?=D1=81=D0=BB=D0=B0=D0=B2=20=D0=A1=D0=B8=D0=B4=D0=BE=D1=80=D0=B5?= =?UTF-8?q?=D0=BD=D0=BA=D0=BE=29?= Date: Wed, 18 Sep 2024 17:01:24 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=AA=20Publish=20awxkit's=20coverage=20?= =?UTF-8?q?to=20Codecov=20(#15525)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It's already being generated, just not uploaded. This patch addresses that. --- Makefile | 2 +- awxkit/tox.ini | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 252b3c6982a2..60aae0395cb0 100644 --- a/Makefile +++ b/Makefile @@ -361,7 +361,7 @@ test_coverage: $(MAKE) test PYTEST_ARGS="--create-db --cov --cov-report=xml --junitxml=reports/junit.xml" @if [ "${GITHUB_ACTIONS}" = "true" ]; \ then \ - echo 'cov-report-files=reports/coverage.xml' >> "${GITHUB_OUTPUT}"; \ + echo 'cov-report-files=awxkit/coverage.xml,reports/coverage.xml' >> "${GITHUB_OUTPUT}"; \ echo 'test-result-files=awxkit/report.xml,reports/junit.xml' >> "${GITHUB_OUTPUT}"; \ fi diff --git a/awxkit/tox.ini b/awxkit/tox.ini index e5855d500ec2..132f72099b4f 100644 --- a/awxkit/tox.ini +++ b/awxkit/tox.ini @@ -18,7 +18,10 @@ deps = pytest pytest-mock -commands = coverage run --parallel --source awxkit -m pytest --doctest-glob='*.md' --junit-xml=report.xml {posargs} +commands = + coverage run --parallel --source awxkit -m pytest --doctest-glob='*.md' --junit-xml=report.xml {posargs} + coverage combine + coverage xml [testenv:lint] deps =