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

Issue:
Fixed pipdeptree call in test workflow
No review needed.


Discussion / hints:

Fix patch:
diff --git a/docs/changes.rst b/docs/changes.rst
index d1de1af9..27b7b600 100644
--- a/docs/changes.rst
+++ b/docs/changes.rst
@@ -47,6 +47,9 @@ Released: not yet
 * Docs: Added missing metrics to the metrics table in the Usage section:
   zhmc_partition_storage_group_uris
 
+* Dev: Fixed the call to pipdeptree in the test workflow to use 'python -m'
+  because otherwise it does not show the correct packages of the virtual env.
+
 **Enhancements:**
 
 **Cleanup:**


Test patch:
diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml
index a9814b91..f74c5e3d 100644
--- a/.github/workflows/test.yml
+++ b/.github/workflows/test.yml
@@ -196,7 +196,7 @@ jobs:
         PACKAGE_LEVEL: ${{ matrix.package_level }}
       run: |
         echo "Package dependency tree of installed Python packages:"
-        pipdeptree --all
+        python -m pipdeptree --all
     - name: Run build
       env:
         PACKAGE_LEVEL: ${{ matrix.package_level }}