Repository: pySTEPS/pysteps (language: python)

Issue:
CI fails to install pysteps on macos-latest
gcc-9 appears to be unsupported on most recent macos images, see e.g.  https://github.com/pySTEPS/pysteps/actions/runs/8859323574/job/24328972824?pr=302


Discussion / hints:

Fix patch:
diff --git a/doc/source/user_guide/install_pysteps.rst b/doc/source/user_guide/install_pysteps.rst
index 79365a3f9..8e8e43de6 100644
--- a/doc/source/user_guide/install_pysteps.rst
+++ b/doc/source/user_guide/install_pysteps.rst
@@ -148,12 +148,12 @@ To make sure that the installer uses the homebrew's gcc, export the
 following environmental variables in the terminal
 (supposing that gcc version 8 was installed)::
 
-    export CC=gcc-8
-    export CXX=g++-8
+    export CC=gcc-13
+    export CXX=g++-13
 
 First, check that the homebrew's gcc is detected::
 
-    which gcc-8
+    which gcc-13
 
 This should point to the homebrew's gcc installation.
 
@@ -162,8 +162,8 @@ gcc executables under /usr/local/bin.
 If that is the case, specify the CC and CCX variables using the full path to
 the homebrew installation. For example::
 
-    export CC=/usr/local/Cellar/gcc/8.3.0/bin/gcc-8
-    export CXX=/usr/local/Cellar/gcc/8.3.0/bin/g++-8
+    export CC=/usr/local/Cellar/gcc/13.2.0/bin/gcc-13
+    export CXX=/usr/local/Cellar/gcc/13.2.0/bin/g++-13
 
 Then, you can continue with the normal installation procedure described next.
 


Test patch:
diff --git a/.github/workflows/test_pysteps.yml b/.github/workflows/test_pysteps.yml
index d16d4aba8..0af2f4182 100644
--- a/.github/workflows/test_pysteps.yml
+++ b/.github/workflows/test_pysteps.yml
@@ -62,14 +62,14 @@ jobs:
         if: matrix.os == 'macos-latest'
         working-directory: ${{github.workspace}}
         env:
-          CC: gcc-9
-          CXX: g++-9
-          CXX1X: g++-9
+          CC: gcc-13
+          CXX: g++-13
+          CXX1X: g++-13
           HOMEBREW_NO_INSTALL_CLEANUP: 1
         run: |
           brew update-reset
           brew update
-          gcc-9 --version || brew install gcc@9
+          gcc-13 --version || brew install gcc@13
           pip install .
 
       - name: Install pysteps