From 739c058739134b1d945a9cfad38531119d44df9e Mon Sep 17 00:00:00 2001 From: Alexander Saprykin Date: Wed, 9 Oct 2024 18:21:54 +0200 Subject: [PATCH] Generate XML coverage report No-Issue --- .github/workflows/ci_full.yml | 5 +++-- dev/playbooks/files/run_units.sh | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_full.yml b/.github/workflows/ci_full.yml index e92bb29dae..61b75416ad 100644 --- a/.github/workflows/ci_full.yml +++ b/.github/workflows/ci_full.yml @@ -79,7 +79,8 @@ jobs: - name: copy coverage report run: | - docker cp pulp:/tmp/galaxy_ng-test-results.xml coverage.xml + docker cp pulp:/tmp/galaxy_ng-test-results.xml test-results.xml + docker cp pulp:/tmp/coverage.xml coverage.xml - name: upload coverage as artifact uses: actions/upload-artifact@v4 @@ -98,7 +99,7 @@ jobs: continue-on-error: true run: | curl -v --user "${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_USER }}:${{ secrets.PDE_ORG_RESULTS_UPLOAD_PASSWORD }}" \ - --form "xunit_xml=@coverage.xml" \ + --form "xunit_xml=@test-results.xml" \ --form "component_name=hub" \ --form "git_commit_sha=${{ github.sha }}" \ --form "git_repository_url=https://github.com/${{ github.repository }}" \ diff --git a/dev/playbooks/files/run_units.sh b/dev/playbooks/files/run_units.sh index 1c1286b383..3eb8e23757 100755 --- a/dev/playbooks/files/run_units.sh +++ b/dev/playbooks/files/run_units.sh @@ -18,7 +18,7 @@ export PYTEST=/usr/local/bin/pytest env | sort PYTEST_FLAGS="" -PYTEST_FLAGS="$PYTEST_FLAGS --cov-report term-missing:skip-covered --cov=galaxy_ng" +PYTEST_FLAGS="$PYTEST_FLAGS --cov-report xml:/tmp/coverage.xml --cov=galaxy_ng" PYTEST_FLAGS="$PYTEST_FLAGS -v -r sx --color=yes" PYTEST_FLAGS="$PYTEST_FLAGS -p no:pulpcore" PYTEST_FLAGS="$PYTEST_FLAGS --junit-xml=/tmp/galaxy_ng-test-results.xml"