Repository: cylc/cylc-uiserver (language: python)

Issue:
GH Actions: downgrade MacOS runner to 12 to retain Python 3.9 testing
https://github.com/actions/runner-images/issues/10812


Discussion / hints:

Fix patch:
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 2c40f040..be24d1cb 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -20,7 +20,7 @@ jobs:
         os: ['ubuntu-latest']
         python: ['3.8', '3.9']
         include:
-          - os: 'macos-12'
+          - os: 'macos-latest'
             python: '3.8'
     steps:
       - name: Checkout


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index ee898cff..a1bbb9c1 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -25,7 +25,7 @@ jobs:
         os: ['ubuntu-latest']
         python: ['3.8', '3.9']
         include:
-          - os: 'macos-12'
+          - os: 'macos-latest'
             python: '3.9'
     env:
       PYTEST_ADDOPTS: --cov --color=yes
@@ -34,6 +34,14 @@ jobs:
       - name: Checkout
         uses: actions/checkout@v4
 
+      - name: Patch DNS
+        uses: cylc/release-actions/patch-dns@v1
+
+      - name: Setup Python
+        uses: actions/setup-python@v5
+        with:
+          python-version: ${{ matrix.python }}
+
       - name: Brew Install
         if: startsWith(matrix.os, 'macos')
         run: |
@@ -53,14 +61,6 @@ jobs:
           export PATH
           __HERE__
 
-      - name: Patch DNS
-        uses: cylc/release-actions/patch-dns@v1
-
-      - name: Setup Python
-        uses: actions/setup-python@v5
-        with:
-          python-version: ${{ matrix.python }}
-
       - name: install cylc-flow
         uses: cylc/release-actions/install-cylc-components@v1
         with: