Repository: zhmcclient/zhmc-prometheus-exporter (language: python)

Issue:
Fixed coveralls not found on MacOS with py39-311
Was reviewed in https://github.com/zhmcclient/python-zhmcclient/pull/1664 - no separate review needed.


Discussion / hints:

Fix patch:
diff --git a/Makefile b/Makefile
index 4077e1f2..85154b84 100644
--- a/Makefile
+++ b/Makefile
@@ -86,7 +86,7 @@ else
   RMDIR_R_FUNC = find . -type d -name '$(1)' | xargs -n 1 rm -rf
   CP_FUNC = cp -r $(1) $(2)
   ENV = env | sort
-  WHICH = which
+  WHICH = which -a
 endif
 
 package_name := zhmc_prometheus_exporter
diff --git a/docs/changes.rst b/docs/changes.rst
index b73a2f72..01ef0e06 100644
--- a/docs/changes.rst
+++ b/docs/changes.rst
@@ -34,6 +34,10 @@ Released: 2024-08-19
   either leading to an immediate IndexError, or to follow-on errors lateron.
   (issue #605)
 
+* Test: Fixed the issue that coveralls was not found in the test workflow on MacOS
+  with Python 3.9-3.11, by running it without login shell. Added Python 3.11 on
+  MacOS to the normal tests.
+
 
 Version 1.7.0
 ^^^^^^^^^^^^^


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index dd1130a7..8b030542 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -61,6 +61,11 @@ jobs:
                 \"python-version\": \"3.8\", \
                 \"package_level\": \"latest\" \
               }, \
+              { \
+                \"os\": \"macos-latest\", \
+                \"python-version\": \"3.11\", \
+                \"package_level\": \"latest\" \
+              }, \
               { \
                 \"os\": \"macos-latest\", \
                 \"python-version\": \"3.12\", \
@@ -202,7 +207,6 @@ jobs:
       run: |
         make docker
     - name: Send coverage result to coveralls.io
-      shell: bash -l {0}
       env:
         GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         COVERALLS_PARALLEL: true