Skip to content

Commit 9e24bed

Browse files
authored
Add cleanup for mac executor (#236)
1 parent b0b7eab commit 9e24bed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/python_unit_tests.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,13 @@ jobs:
3030
HTTPBIN_URL: ${{ secrets.httpbin_url || 'https://httpbin.org' }}
3131

3232
steps:
33+
- name: macOS cleanup
34+
if: runner.os == 'macOS'
35+
# Disable Spotlight indexing and try to kill all useless processes that could drain CPU during tests
36+
run: |
37+
sudo mdutil -i off /
38+
sudo killall Finder spindump ecosystemanalyticsd SystemUIServer NotificationCenter mds mds_stores mds_worker mdworker mdworker_shared || true
39+
3340
- name: Checkout repository
3441
uses: actions/checkout@v4
3542

0 commit comments

Comments
 (0)