Skip to content

Commit

Permalink
fix Conflict: an artifact with this name already exists on the workfl…
Browse files Browse the repository at this point in the history
…ow run
  • Loading branch information
leon1995 committed Nov 26, 2024
1 parent 57b55ff commit e01d8ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,15 +102,15 @@ jobs:
uses: actions/upload-artifact@v4
if: success() || failure() # upload artifacts also if test stage failed
with:
name: unittest_reports
name: unittest_report_${{ matrix.os }}_py${{ matrix.python-version }}_${{ env.SUFFIX }}.html
path: pytest_reports/unittest_report_${{ matrix.os }}_py${{ matrix.python-version }}_${{ env.SUFFIX }}.html
retention-days: 5

- name: Archive test log
uses: actions/upload-artifact@v4
if: success() || failure() # upload artifacts also if test stage failed
with:
name: pytest_logs
name: pytest_${{ matrix.os }}_py${{ matrix.python-version }}_${{ env.SUFFIX }}.log
path: pytest_${{ matrix.os }}_py${{ matrix.python-version }}_${{ env.SUFFIX }}.log
retention-days: 5

Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,9 @@ jobs:
- name: Download Unittest report
uses: actions/download-artifact@v4
with:
name: unittest_reports
pattern: unittest_report_*
path: pytest_reports/
merge-multiple: true

- name: Zip unittest reports
uses: vimtor/[email protected]
Expand Down

0 comments on commit e01d8ca

Please sign in to comment.