Skip to content

Commit

Permalink
python cov comment, move pr to done always move on merge and close (#129
Browse files Browse the repository at this point in the history
)

* #120 update add to project dependabot permissions

* senzing-garage/sz-sdk-python#39 add shared coverage comment workflow

* remove dependabot requirement

* add newline
  • Loading branch information
kernelsam authored Apr 9, 2024
1 parent 569a9f3 commit 241117a
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/move-pr-to-done-dependabot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ permissions:

jobs:
move-pr-to-done-column:
if: ${{ github.event.pull_request.user.login == 'dependabot[bot]' && github.event.action == 'closed' }}
if: ${{ github.event.pull_request.merged == true || github.event.action == 'closed' }}
runs-on: ubuntu-latest

steps:
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/python-coverage-comment.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: python coverage comment

on:
workflow_call:

permissions:
pull-requests: write
contents: write

jobs:
coverage:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4

- uses: actions/download-artifact@v4
id: download
with:
pattern: coverage-*
merge-multiple: true

- name: Coverage comment
id: coverage_comment
uses: py-cov-action/python-coverage-comment-action@v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
MERGE_COVERAGE_FILES: true

- name: Store Pull Request comment to be posted
uses: actions/upload-artifact@v4
if: steps.coverage_comment.outputs.COMMENT_FILE_WRITTEN == 'true'
with:
name: python-coverage-comment-action
path: python-coverage-comment-action.txt

0 comments on commit 241117a

Please sign in to comment.