Skip to content

Commit 1f57692

Browse files
committed
Only build & test using macos runners for tags
1 parent 6d9656b commit 1f57692

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/build_and_test.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
strategy:
2525
fail-fast: false
2626
matrix:
27-
os: ['ubuntu-latest', 'macos-latest-xlarge']
27+
os: ['ubuntu-latest']
2828

2929
runs-on: ${{ matrix.os }}
3030

@@ -107,6 +107,7 @@ jobs:
107107
python-version: ${{ matrix.python-version }}
108108

109109
build-mac:
110+
if: github.ref_type == 'tag' # only build for mac when tags
110111
strategy:
111112
fail-fast: false
112113
matrix:
@@ -150,6 +151,7 @@ jobs:
150151
python-version: ${{ matrix.python-version }}
151152

152153
test-mac:
154+
if: github.ref_type == 'tag' # only test for mac when tags
153155
needs: [build-mac]
154156
strategy:
155157
fail-fast: false

.github/workflows/run_ert_test_data_setups.yml

+11-6
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,18 @@ jobs:
2222
matrix:
2323
python-version: ['3.8', '3.11', '3.12']
2424
os: [ubuntu-latest, macos-13, macos-latest-xlarge]
25+
isPR: [ ${{ github.ref_type != 'tag' }} ]
2526
exclude:
26-
- python-version: '3.11'
27-
os: macos-13
28-
- python-version: '3.11'
29-
os: macos-latest-xlarge
30-
- python-version: '3.8'
31-
os: macos-latest-xlarge
27+
- isPR: true
28+
os: macos-latest-xlarge
29+
- isPR: true
30+
os: macos-13
31+
- python-version: '3.11'
32+
os: macos-13
33+
- python-version: '3.11'
34+
os: macos-latest-xlarge
35+
- python-version: '3.8'
36+
os: macos-latest-xlarge
3237

3338
runs-on: ${{ matrix.os }}
3439

0 commit comments

Comments
 (0)