Skip to content

Commit c0b94ec

Browse files
committed
lint cleanup: zizmor, prettier, yamllint
1 parent fc9a79d commit c0b94ec

4 files changed

Lines changed: 36 additions & 0 deletions

File tree

.github/workflows/pylint.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,12 @@ jobs:
4444
run: |
4545
# shellcheck disable=SC2046
4646
pylint $(git ls-files '*.py' ':!:docs/source/*')
47+
48+
- name: Notify Slack on failure
49+
if: (failure() || cancelled()) && github.ref_name == github.event.repository.default_branch
50+
uses: senzing-factory/build-resources/slack-failure-notification@v4
51+
with:
52+
job-status: ${{ job.status }}
53+
slack-channel: ${{ secrets.SLACK_CHANNEL }}
54+
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
55+
additional-info: "Python: ${{ matrix.python-version }}"

.github/workflows/pytest-darwin.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,3 +117,12 @@ jobs:
117117
with:
118118
name: "coverage-${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
119119
path: "coverage.${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
120+
121+
- name: Notify Slack on failure
122+
if: (failure() || cancelled()) && github.event_name == 'schedule'
123+
uses: senzing-factory/build-resources/slack-failure-notification@v4
124+
with:
125+
job-status: ${{ job.status }}
126+
slack-channel: ${{ secrets.SLACK_CHANNEL }}
127+
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
128+
additional-info: "SDK: ${{ matrix.senzingsdk-version }} | Python: ${{ matrix.python-version }}"

.github/workflows/pytest-linux.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,3 +106,12 @@ jobs:
106106
with:
107107
name: "coverage-${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
108108
path: "coverage.${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
109+
110+
- name: Notify Slack on failure
111+
if: (failure() || cancelled()) && (github.ref_name == github.event.repository.default_branch || github.event_name == 'schedule')
112+
uses: senzing-factory/build-resources/slack-failure-notification@v4
113+
with:
114+
job-status: ${{ job.status }}
115+
slack-channel: ${{ secrets.SLACK_CHANNEL }}
116+
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
117+
additional-info: "SDK: ${{ matrix.senzingsdk-version }} | Python: ${{ matrix.python-version }}"

.github/workflows/pytest-windows.yaml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,3 +111,12 @@ jobs:
111111
with:
112112
name: "coverage-${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
113113
path: "coverage.${{ matrix.python-version }}-${{ matrix.senzingsdk-version }}"
114+
115+
- name: Notify Slack on failure
116+
if: (failure() || cancelled()) && github.event_name == 'schedule'
117+
uses: senzing-factory/build-resources/slack-failure-notification@v4
118+
with:
119+
job-status: ${{ job.status }}
120+
slack-channel: ${{ secrets.SLACK_CHANNEL }}
121+
slack-bot-token: ${{ secrets.SLACK_BOT_TOKEN }}
122+
additional-info: "SDK: ${{ matrix.senzingsdk-version }} | Python: ${{ matrix.python-version }}"

0 commit comments

Comments
 (0)