diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 90063013d15..961e11feac4 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -117,17 +117,30 @@ jobs: python-version: ${{ matrix.python-version }} build-mac-for-tags: - if: github.ref_type == 'tag' # only build all variants for tags + #if: github.ref_type == 'tag' # only build all variants for tags strategy: fail-fast: false matrix: python-version: [ '3.8', '3.9', '3.10', '3.11', '3.12' ] - os: [ 'macos-13', 'macos-latest-xlarge' ] + # https://github.com/actions/runner-images?tab=readme-ov-file#available-images + os: [ 'macos-13', 'macos-14', 'macos-14-large'] exclude: - - os: 'macos-latest-xlarge' + - os: 'macos-14' python-version: '3.8' - - os: 'macos-latest-xlarge' + - os: 'macos-14' python-version: '3.9' + - os: 'macos-14' + python-version: '3.10' + - os: 'macos-14-large' + python-version: '3.8' + - os: 'macos-14-large' + python-version: '3.9' + - os: 'macos-14-large' + python-version: '3.10' + - os: 'macos-13' + python-version: '3.11' + - os: 'macos-13' + python-version: '3.12' uses: ./.github/workflows/build-wheels-macos.yml with: @@ -135,12 +148,13 @@ jobs: os: ${{ matrix.os }} build-mac: - if: github.ref_type != 'tag' # one combination when not tag + #if: github.ref_type != 'tag' # one combination when not tag + if: github.ref_type == 'tag' # one combination when not tag strategy: fail-fast: false matrix: python-version: [ '3.12' ] - os: [ 'macos-latest' ] + os: [ 'macos-14' ] uses: ./.github/workflows/build-wheels-macos.yml with: python-version: ${{ matrix.python-version }} @@ -173,17 +187,23 @@ jobs: python-version: ${{ matrix.python-version }} test-mac-for-tags: - if: github.ref_type == 'tag' # only test all variants for tags + #if: github.ref_type == 'tag' # only test all variants for tags + if: github.ref_type != 'tag' # only test all variants for tags needs: [build-mac-for-tags] strategy: fail-fast: false matrix: test-type: [ 'integration-tests', 'unit-tests', 'gui-test' ] python-version: [ '3.8', '3.12' ] - os: [ 'macos-13', 'macos-latest-xlarge' ] + os: [ 'macos-13', 'macos-14', 'macos-14-large'] exclude: - - os: 'macos-latest-xlarge' + - os: 'macos-14' python-version: '3.8' + - os: 'macos-14-large' + python-version: '3.8' + - os: 'macos-13' + python-version: '3.12' + uses: ./.github/workflows/test_ert.yml with: os: ${{ matrix.os }} @@ -191,14 +211,15 @@ jobs: test-type: ${{ matrix.test-type }} test-mac: - if: github.ref_type != 'tag' # one combination when not tag + #if: github.ref_type != 'tag' # one combination when not tag + if: github.ref_type == 'tag' # one combination when not tag needs: [build-mac] strategy: fail-fast: false matrix: test-type: [ 'integration-tests', 'unit-tests', 'gui-test' ] python-version: [ '3.12' ] - os: [ 'macos-latest' ] + os: [ 'macos-14' ] uses: ./.github/workflows/test_ert.yml with: os: ${{ matrix.os }}