Skip to content

Commit 6bc8b30

Browse files
committed
fix test-vizro-ai-ui.yml
1 parent 4e8d43e commit 6bc8b30

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

.github/workflows/test-vizro-ai-ui.yml

+11-8
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,19 @@ jobs:
5050

5151
- name: Run VizroAI UI tests
5252
run: |
53-
hatch run vizro-ai-ui
5453
hatch run test-vizro-ai-ui
5554
env:
5655
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
5756
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
5857

59-
- name: Create artifacts and slack notifications
60-
if: failure()
61-
uses: ./.github/actions/failed-artifacts-and-slack-notifications
62-
env:
63-
TESTS_NAME: VizroAI UI tests
64-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
65-
PROJECT_PATH: /home/runner/work/vizro/vizro/vizro-ai/
58+
- name: Send custom JSON data to Slack
59+
id: slack
60+
uses: slackapi/[email protected]
61+
with:
62+
payload: |
63+
{
64+
"text": "VizroAI UI tests build result: ${{ job.status }}\nBranch: ${{ github.head_ref }}\n${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
65+
}
66+
env:
67+
SLACK_WEBHOOK_URL: ${{ env.SLACK_WEBHOOK_URL }}
68+
SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK

0 commit comments

Comments
 (0)