Skip to content

Commit 6a0c0bd

Browse files
committed
run macOS tests only on schedule
1 parent 25a2c01 commit 6a0c0bd

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

.github/workflows/integration-test.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,16 @@ jobs:
3030
runs-on: ${{ matrix.runner }}
3131
strategy:
3232
matrix:
33-
runner: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.runner-os && fromJSON(format('["{0}"]', github.event.inputs.runner-os))) || fromJSON('["ubuntu-latest", "macos-13"]') }}
33+
runner: ${{
34+
# 1. If triggered by workflow_dispatch: use the selected input runner
35+
( github.event_name == 'workflow_dispatch' && github.event.inputs.runner-os && fromJSON(format('["{0}"]', github.event.inputs.runner-os)) ) ||
36+
37+
# 2. If triggered by schedule: use BOTH ubuntu and macos
38+
( github.event_name == 'schedule' && fromJSON('["ubuntu-latest", "macos-13"]') ) ||
39+
40+
# 3. Otherwise (push or pull_request): use ONLY ubuntu
41+
fromJSON('["ubuntu-latest"]')
42+
}}
3443
steps:
3544
- name: Checkout
3645
uses: actions/checkout@v4
@@ -41,15 +50,6 @@ jobs:
4150
with:
4251
python-version: 3.11
4352

44-
- name: Debug Runner Context (Ubuntu)
45-
if: runner.os == 'Linux' # Only run this debug step on Linux
46-
run: |
47-
echo "DEBUG: Runner OS is ${{ runner.os }}"
48-
echo "DEBUG: Event name is ${{ github.event_name }}"
49-
echo "DEBUG: Evaluating runner.os == 'macOS' -> ${{ runner.os == 'macOS' }}"
50-
echo "DEBUG: Evaluating github.event_name == 'schedule' -> ${{ github.event_name == 'schedule' }}"
51-
echo "DEBUG: Evaluating full condition -> ${{ runner.os == 'macOS' && github.event_name == 'schedule' }}"
52-
5353
- name: Docker setup (macos only)
5454
if: ${{ runner.os == 'macOS' && github.event_name == 'schedule' }}
5555
run: |

0 commit comments

Comments
 (0)