Skip to content

Commit

Permalink
CI report comments fix (#3686)
Browse files Browse the repository at this point in the history
* add list files to ci

* change report name and artf name
  • Loading branch information
oliverfunk authored Nov 5, 2024
1 parent 107919b commit ba14fc4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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} \
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/comments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
Expand All @@ -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')"
Expand Down

0 comments on commit ba14fc4

Please sign in to comment.