Skip to content

Commit

Permalink
Combine steps
Browse files Browse the repository at this point in the history
  • Loading branch information
wsanchez committed Oct 31, 2024
1 parent 96e954a commit 4bf3a5a
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -260,21 +260,17 @@ jobs:
name: trial
path: .tox/${TOX_ENV}/log/trial.log

- name: Clear prior optional job failed comment, if any
- name: Add comment if optional job failed; delete otherwise
if: ${{ matrix.optional }}
uses: thollander/actions-comment-pull-request@v3
with:
# Note: tag must be unique to each matrix case
comment-tag: "${{ matrix.python-version }}-${{ matrix.os }}-optional-notice"
mode: delete

# - name: Add comment if optional job failed
# if: ${{ steps.test.outputs.optional_fail == 'true' }}
# uses: thollander/actions-comment-pull-request@v3
# with:
# comment-tag: "${{ matrix.python-version }}-${{ matrix.os }}-optional-notice"
# message: |
# ### Optional matrix job Py:${{ matrix.python-version }} - ${{ matrix.os }} failed!
# - tox prefix: ${{ matrix.tox-prefix }}
# - exit status: ${{ steps.test.outputs.optional_fail_status }}
message: |
### ⚠️ Optional matrix job Py:${{ matrix.python-version }} - ${{ matrix.os }} failed ⚠️
- tox prefix: ${{ matrix.tox-prefix }}
- exit status: ${{ steps.test.outputs.optional_fail_status }}
mode: ${{ steps.test.outputs.optional_fail == 'true' && 'upsert' || 'delete' }}

# Use the latest supported Python version for combining coverage to
# prevent parsing errors in older versions when looking at modern code.
Expand Down

0 comments on commit 4bf3a5a

Please sign in to comment.