Skip to content

Commit ef106ab

Browse files
committed
Fixes
1 parent 1a15a2c commit ef106ab

1 file changed

Lines changed: 40 additions & 23 deletions

File tree

‎.github/workflows/daily-ci.yml‎

Lines changed: 40 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,26 @@ jobs:
2323

2424
runs-on: ${{ matrix.os }}
2525
steps:
26+
- name: foo
27+
shell: bash
28+
env:
29+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
30+
run: echo "webhook ($SLACK_WEBHOOK_URL) -> ${{ secrets.SLACK_WEBHOOK_URL }}"
31+
32+
- name: Post a message in a channel
33+
uses: slackapi/slack-github-action@v2.0.0
34+
with:
35+
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
36+
webhook-type: incoming-webhook
37+
payload: |
38+
text: "*GitHub Action build result*"
39+
blocks:
40+
- type: "section"
41+
text:
42+
type: "mrkdwn"
43+
text: "GitHub Action build result"
44+
45+
2646
- uses: actions/checkout@v4
2747

2848
- name: Install C++ libraries
@@ -42,32 +62,29 @@ jobs:
4262
cache-dependency-glob: "uv.lock"
4363
python-version: ${{ matrix.python-version }}
4464

45-
# - name: Update requirements
46-
# run: uv lock --resolution=${{ matrix.dependencies-factor }} --prerelease=allow
47-
4865
- name: Run CPU tests for '${{ matrix.module-factor }}' with '${{ matrix.dependencies-factor }}' resolution strategy
4966
env:
5067
NUM_PROCESSES: auto
5168
UV_RESOLUTION: ${{ matrix.dependencies-factor }}
5269
run: uv run nox -s '${{ matrix.module-factor }}_tests-${{ matrix.python-version }}' -t 'cpu'
5370

54-
- name: Notify slack
55-
if: ${{ failure() }}
56-
env:
57-
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
58-
uses: slackapi/slack-github-action@v1.23.0
59-
with:
60-
channel-id: ${{ vars.SLACK_BOT_CHANNEL }}
61-
payload: |
62-
{
63-
"text": "${{ github.workflow }}: `Daily CI: '**${{ matrix.module-factor }} (CPU)** for **Python-${{ matrix.python-version }}**>: *Failed tests!*",
64-
"blocks": [
65-
{
66-
"type": "section",
67-
"text": {
68-
"type": "mrkdwn",
69-
"text": "<https://github.com/GridTools/gt4py/actions/runs/${{ github.run_id }}|${{ github.workflow }}: **${{ matrix.module-factor }} (CPU)** for **Python-${{ matrix.python-version }}**>: *Failed tests!*"
70-
}
71-
}
72-
]
73-
}
71+
# - name: Notify slack
72+
# if: ${{ failure() }}
73+
# env:
74+
# SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
75+
# uses: slackapi/slack-github-action@v1.23.0
76+
# with:
77+
# channel-id: ${{ vars.SLACK_BOT_CHANNEL }}
78+
# payload: |
79+
# {
80+
# "text": "${{ github.workflow }}: `Daily CI: '**${{ matrix.module-factor }} (CPU)** for **Python-${{ matrix.python-version }}**>: *Failed tests!*",
81+
# "blocks": [
82+
# {
83+
# "type": "section",
84+
# "text": {
85+
# "type": "mrkdwn",
86+
# "text": "<https://github.com/GridTools/gt4py/actions/runs/${{ github.run_id }}|${{ github.workflow }}: **${{ matrix.module-factor }} (CPU)** for **Python-${{ matrix.python-version }}**>: *Failed tests!*"
87+
# }
88+
# }
89+
# ]
90+
# }

0 commit comments

Comments
 (0)