Skip to content

Commit 25207b3

Browse files
committed
Try to disable spotlight on the mac executor
1 parent 48830c3 commit 25207b3

File tree

1 file changed

+32
-7
lines changed

1 file changed

+32
-7
lines changed

.github/workflows/run_code_checks.yaml

Lines changed: 32 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,13 +30,38 @@ jobs:
3030
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
3131

3232
unit_tests:
33-
name: Unit tests
34-
uses: apify/workflows/.github/workflows/python_unit_tests.yaml@main
35-
secrets:
36-
httpbin_url: ${{ secrets.APIFY_HTTPBIN_TOKEN && format('https://httpbin.apify.actor?token={0}', secrets.APIFY_HTTPBIN_TOKEN) || 'https://httpbin.org'}}
37-
with:
38-
python-versions: '["3.10", "3.11", "3.12", "3.13", "3.14"]'
39-
os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
33+
strategy:
34+
fail-fast: false
35+
matrix:
36+
os: ["ubuntu-latest", "windows-latest", "macos-latest"]
37+
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
38+
runs-on: ${{ matrix.os }}
39+
env:
40+
HTTPBIN_URL: 'asd'
41+
42+
steps:
43+
- name: Disable Spotlight indexing
44+
if: runner.os == 'macOS'
45+
run: sudo mdutil -i off /
46+
47+
- name: Checkout repository
48+
uses: actions/checkout@v4
49+
50+
- name: Set up Python ${{ matrix.python-version }}
51+
uses: actions/setup-python@v5
52+
with:
53+
python-version: ${{ matrix.python-version }}
54+
55+
- name: Set up uv package manager
56+
uses: astral-sh/setup-uv@v6
57+
with:
58+
python-version: ${{ matrix.python-version }}
59+
60+
- name: Install Python dependencies
61+
run: make install-dev
62+
63+
- name: Run unit tests
64+
run: make unit-tests
4065

4166
docs_check:
4267
name: Docs check

0 commit comments

Comments
 (0)