Repository: allenporter/flux-local (language: python)

Issue:
Cache pip in github action
Hey @allenporter,

Seems like we can speed this up a bit :)

https://github.com/allenporter/flux-local/blob/main/action/diff/action.yml#L60

https://github.com/actions/setup-python?tab=readme-ov-file#caching-packages-dependencies


Discussion / hints:
Thanks @buroa 👍🏼 

Fix patch:
diff --git a/action/diff/action.yml b/action/diff/action.yml
index 08d73126..d6a893e6 100644
--- a/action/diff/action.yml
+++ b/action/diff/action.yml
@@ -59,6 +59,7 @@ runs:
       with:
         python-version: ${{ inputs.python-version }}
         cache: pip
+        cache-dependency-path: ${{ github.action_path }}/../../requirements.txt
     - name: Install flux-local and requirements
       run: |
         pip install -r ${{ github.action_path }}/../../requirements.txt


Test patch:
diff --git a/action/test/action.yml b/action/test/action.yml
index f2c6ebcb..a45e8e8a 100644
--- a/action/test/action.yml
+++ b/action/test/action.yml
@@ -44,6 +44,7 @@ runs:
       with:
         python-version: ${{ inputs.python-version }}
         cache: pip
+        cache-dependency-path: ${{ github.action_path }}/../../requirements.txt
     - name: Install flux-local and requirements
       run: |
         pip install -r ${{ github.action_path }}/../../requirements.txt