🧪 Pass specific report files to codecov-cli (#15520)

The automatic discovery is currently unreliable.

Ref: https://github.com/codecov/codecov-cli/issues/500
This commit is contained in:
Sviatoslav Sydorenko (Святослав Сидоренко)
2024-09-14 03:11:11 +02:00
committed by GitHub
parent 3baea0f206
commit abdc669e50
2 changed files with 6 additions and 2 deletions

View File

@@ -67,6 +67,8 @@ jobs:
${{ ${{
toJSON(env.UPSTREAM_REPOSITORY_ID == github.repository_id) toJSON(env.UPSTREAM_REPOSITORY_ID == github.repository_id)
}} }}
files: >-
${{ steps.make-run.outputs.cov-report-files }}
flags: >- flags: >-
CI-GHA, CI-GHA,
pytest, pytest,
@@ -85,6 +87,8 @@ jobs:
${{ ${{
toJSON(env.UPSTREAM_REPOSITORY_ID == github.repository_id) toJSON(env.UPSTREAM_REPOSITORY_ID == github.repository_id)
}} }}
files: >-
${{ steps.make-run.outputs.test-result-files }}
flags: >- flags: >-
CI-GHA, CI-GHA,
pytest, pytest,

View File

@@ -356,8 +356,8 @@ test_coverage:
$(MAKE) test PYTEST_ARGS="--create-db --cov=awx --cov-report=xml --junitxml=reports/junit.xml" $(MAKE) test PYTEST_ARGS="--create-db --cov=awx --cov-report=xml --junitxml=reports/junit.xml"
@if [ "${GITHUB_ACTIONS}" = "true" ]; \ @if [ "${GITHUB_ACTIONS}" = "true" ]; \
then \ then \
echo 'cov-report-files=coverage.xml' >> "${GITHUB_OUTPUT}"; \ echo 'cov-report-files=reports/coverage.xml' >> "${GITHUB_OUTPUT}"; \
echo 'test-result-files=reports/junit.xml' >> "${GITHUB_OUTPUT}"; \ echo 'test-result-files=awxkit/report.xml,reports/junit.xml' >> "${GITHUB_OUTPUT}"; \
fi fi
test_migrations: test_migrations: