diff --git a/.github/workflows/ci_full.yml b/.github/workflows/ci_full.yml index 9128b19b2d..05e6704a21 100644 --- a/.github/workflows/ci_full.yml +++ b/.github/workflows/ci_full.yml @@ -100,6 +100,18 @@ jobs: - name: run the unit test playbook run: cd dev/playbooks; ANSIBLE_STDOUT_CALLBACK=yaml ansible-playbook -i 'localhost,' --forks=1 -v run_unit_tests.yaml + - name: upload jUnit XML test results + if: github.event_name == 'push' && github.repository == 'ansible/galaxy_ng' && github.ref_name == 'master' + continue-on-error: true + run: >- + docker exec pulp /bin/bash -c 'curl -v --user "${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_USER }}:${{ secrets.PDE_ORG_RESULTS_UPLOAD_PASSWORD }}" + --form "xunit_xml=@/tmp/galaxy_ng-test-results.xml" + --form "component_name=hub" + --form "git_commit_sha=${{ github.sha }}" + --form "git_repository_url=https://github.com/${{ github.repository }}" + "${{ vars.PDE_ORG_RESULTS_AGGREGATOR_UPLOAD_URL }}/api/results/upload/"' + + # FIXME: do we really care about these anymore ... ? #- name: run the functional test playbook # run: cd dev/playbooks; ANSIBLE_STDOUT_CALLBACK=yaml ansible-playbook -i 'localhost,' --forks=1 -v run_functional_tests.yaml diff --git a/dev/playbooks/files/run_units.sh b/dev/playbooks/files/run_units.sh index 26a517f766..1c1286b383 100755 --- a/dev/playbooks/files/run_units.sh +++ b/dev/playbooks/files/run_units.sh @@ -21,6 +21,7 @@ PYTEST_FLAGS="" PYTEST_FLAGS="$PYTEST_FLAGS --cov-report term-missing:skip-covered --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" # This command will run all unit tests in galaxy_ng/tests/unit. # If you need to run a single test, include '-k ' in the PYTEST_FLAGS variable