Skip to content

Commit d67b0e8

Browse files
SCANPY-220 Addressed reviewer's comments. Added temporary trigger for testing.
1 parent 80a9b7b commit d67b0e8

File tree

1 file changed

+29
-6
lines changed

1 file changed

+29
-6
lines changed

.github/workflows/MacOsNightly.yml

Lines changed: 29 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
name: macOS Nightly Build
22

33
on:
4+
# TODO: Remove this trigger before merging to master
5+
push:
6+
branches:
7+
- MJ/SCANPY-220
48
schedule:
59
# Run at 3:00 AM UTC every day (5:00 AM CEST / 4:00 AM CET)
610
- cron: "0 3 * * *"
@@ -20,7 +24,7 @@ concurrency:
2024
jobs:
2125
qa-macos:
2226
name: "Test macOS Python ${{ matrix.python-version }}"
23-
runs-on: github-macos-large
27+
runs-on: macos-latest-xlarge
2428
permissions:
2529
id-token: write
2630
contents: read
@@ -32,6 +36,9 @@ jobs:
3236
- name: Checkout repository
3337
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
3438

39+
- name: Setup Cloudflare WARP
40+
uses: SonarSource/gh-action_setup-cloudflare-warp@v1
41+
3542
- name: Configure poetry
3643
uses: ./.github/actions/config-poetry
3744
with:
@@ -42,7 +49,7 @@ jobs:
4249

4350
its-macos:
4451
name: "macOS Integration Tests"
45-
runs-on: github-macos-large
52+
runs-on: macos-latest-xlarge
4653
if: ${{ !inputs.skip_its }}
4754
permissions:
4855
id-token: write
@@ -53,6 +60,9 @@ jobs:
5360
- name: Checkout repository
5461
uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
5562

63+
- name: Setup Cloudflare WARP
64+
uses: SonarSource/gh-action_setup-cloudflare-warp@v1
65+
5666
- name: Cache SonarQube
5767
uses: SonarSource/ci-github-actions/cache@v1
5868
id: sonarqube-cache
@@ -77,12 +87,25 @@ jobs:
7787

7888
notify-on-failure:
7989
name: "Notify on Failure"
80-
runs-on: github-ubuntu-latest-s
90+
runs-on: ubuntu-latest
91+
permissions:
92+
id-token: write
93+
contents: read
8194
needs: [qa-macos, its-macos]
8295
if: failure() && github.event_name == 'schedule'
8396
steps:
84-
- name: Notify team about nightly failure
97+
- name: Write failure summary
8598
run: |
86-
echo "macOS nightly build failed. Check the workflow run for details."
87-
echo "Workflow URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"
99+
echo "## macOS Nightly Build Failed" >> $GITHUB_STEP_SUMMARY
100+
echo "" >> $GITHUB_STEP_SUMMARY
101+
echo "The scheduled macOS nightly build has failed." >> $GITHUB_STEP_SUMMARY
102+
echo "" >> $GITHUB_STEP_SUMMARY
103+
echo "**Workflow Run:** ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" >> $GITHUB_STEP_SUMMARY
104+
105+
- name: Send Slack notification
106+
uses: SonarSource/[email protected]
107+
env:
108+
GITHUB_TOKEN: ${{ github.token }}
109+
with:
110+
slackChannel: squad-python-notifs
88111

0 commit comments

Comments
 (0)