diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 4c6f8ee7f4..7c338f0e8c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -82,7 +82,8 @@ jobs: --cov-report html:htmlcov_bluemira \ --cov-report xml \ --json-report \ - --json-report-indent=3 \ + --json-report-file=test-report.json \ + --json-report-indent=2 \ --reactor \ ${PYTEST_PRIVATE} \ ${PYTEST_LONGRUN} \ @@ -94,8 +95,8 @@ jobs: env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: - name: report-json_${{ matrix.python-version }}_${{ matrix.os }} - path: .report.json + name: test-report-json_${{ matrix.python-version }}_${{ matrix.os }} + path: test-report.json overwrite: true - name: "Upload coverage to Codecov" diff --git a/.github/workflows/comments.yml b/.github/workflows/comments.yml index 18e387c3a5..5251a061e6 100644 --- a/.github/workflows/comments.yml +++ b/.github/workflows/comments.yml @@ -34,7 +34,7 @@ jobs: - name: Download reference test report if: env.RESULT == 'success' && steps.workflow-run-info.outputs.pullRequestNumber != '' env: - FILE_NAME: "report-json_3.10_ubuntu-latest" + FILE_NAME: "test-report-json_3.10_ubuntu-latest" run: | artifact_url="$( \ gh api repos/${{ github.repository }}/actions/artifacts?per_page=100 --jq '.artifacts[] | select(.name == "${{ env.FILE_NAME }}") | select(.workflow_run.head_sha == "${{ steps.base_sha.outputs.base_sha}}") | .archive_download_url' | head -1)" @@ -48,7 +48,7 @@ jobs: - name: Download PR test report if: env.RESULT == 'success' && steps.workflow-run-info.outputs.pullRequestNumber != '' env: - FILE_NAME: "report-json_3.10_ubuntu-latest" + FILE_NAME: "test-report-json_3.10_ubuntu-latest" run: | artifact_url="$( \ gh api repos/${{ github.repository }}/actions/artifacts?per_page=100 --jq '.artifacts[] | select(.name == "${{ env.FILE_NAME }}") | select(.workflow_run.head_sha == "${{ github.event.workflow_run.head_sha }}") | .archive_download_url')"