Skip to content

Commit

Permalink
Generate XML coverage report
Browse files Browse the repository at this point in the history
No-Issue
  • Loading branch information
cutwater committed Oct 9, 2024
1 parent 18d8f6c commit 739c058
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/ci_full.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}" \
Expand Down
2 changes: 1 addition & 1 deletion dev/playbooks/files/run_units.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit 739c058

Please sign in to comment.