generated from fastai/nbdev_template
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Workflow: Notify tests results on slack channel (#1744)
* Update tests-main.yml * Update docker-build.yml
- Loading branch information
1 parent
f5168fd
commit 2d244f8
Showing
2 changed files
with
20 additions
and
69 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -45,30 +45,14 @@ jobs: | |
push: true | ||
tags: huggingface/trl-latest-gpu | ||
|
||
- name: Post to a Slack channel | ||
id: slack | ||
#uses: slackapi/[email protected] | ||
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 | ||
- name: Post to Slack | ||
if: always() | ||
uses: huggingface/hf-workflows/.github/actions/post-slack@main | ||
with: | ||
# Slack channel id, channel name, or user id to post message. | ||
# See also: https://api.slack.com/methods/chat.postMessage#channels | ||
channel-id: ${{ env.CI_SLACK_CHANNEL }} | ||
# For posting a rich message using Block Kit | ||
payload: | | ||
{ | ||
"text": "trl-latest-gpu Docker Image build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}", | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "trl-latest-gpu Docker Image build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} | ||
slack_channel: ${{ env.CI_SLACK_CHANNEL }} | ||
title: 🤗 Results of the trl-latest-gpu Docker Image build | ||
status: ${{ job.status }} | ||
slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} | ||
|
||
trl-source: | ||
name: "Latest TRL + HF ecosystem from source" | ||
|
@@ -101,27 +85,11 @@ jobs: | |
push: true | ||
tags: huggingface/trl-source-gpu | ||
|
||
- name: Post to a Slack channel | ||
id: slack | ||
#uses: slackapi/[email protected] | ||
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 | ||
- name: Post to Slack | ||
if: always() | ||
uses: huggingface/hf-workflows/.github/actions/post-slack@main | ||
with: | ||
# Slack channel id, channel name, or user id to post message. | ||
# See also: https://api.slack.com/methods/chat.postMessage#channels | ||
channel-id: ${{ env.CI_SLACK_CHANNEL }} | ||
# For posting a rich message using Block Kit | ||
payload: | | ||
{ | ||
"text": "trl-source-gpu Docker Image build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}", | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "trl-source-gpu Docker Image build result: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} | ||
slack_channel: ${{ env.CI_SLACK_CHANNEL }} | ||
title: 🤗 Results of the trl-source-gpu Docker Image build | ||
status: ${{ job.status }} | ||
slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -36,28 +36,11 @@ jobs: | |
- name: Test with pytest | ||
run: | | ||
make test | ||
- name: Post to a Slack channel | ||
- name: Post to Slack | ||
if: always() | ||
id: slack | ||
#uses: slackapi/[email protected] | ||
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 | ||
uses: huggingface/hf-workflows/.github/actions/post-slack@main | ||
with: | ||
# Slack channel id, channel name, or user id to post message. | ||
# See also: https://api.slack.com/methods/chat.postMessage#channels | ||
channel-id: ${{ env.CI_SLACK_CHANNEL }} | ||
# For posting a rich message using Block Kit | ||
payload: | | ||
{ | ||
"text": "TRL CI on transformers/PEFT main: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}", | ||
"blocks": [ | ||
{ | ||
"type": "section", | ||
"text": { | ||
"type": "mrkdwn", | ||
"text": "TRL CI on transformers/PEFT main: ${{ job.status }}\n${{ github.event.pull_request.html_url || github.event.head_commit.url }}" | ||
} | ||
} | ||
] | ||
} | ||
env: | ||
SLACK_BOT_TOKEN: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} | ||
slack_channel: ${{ env.CI_SLACK_CHANNEL }} | ||
title: 🤗 Results of the TRL CI on transformers/PEFT main | ||
status: ${{ job.status }} | ||
slack_token: ${{ secrets.SLACK_CIFEEDBACK_BOT_TOKEN }} |