-
Hi folks. I am new to GitHub Actions so apologies if I am asking a naive question. I am trying to set up my workflow such that after the pip dependencies get installed for the first time they get cached and do not get installed next time when the workflow is triggered. My workflow file looks like so:
The second time the workflow is getting trigger there is a cache hit and it is able to restore the cache as well: But then again I get the following:
Am I missing out on something? |
Beta Was this translation helpful? Give feedback.
Replies: 14 comments
-
I modified my workflow file a bit like the following:
But still the dependencies install and do not get cached. |
Beta Was this translation helpful? Give feedback.
-
Hi @sayakpaul |
Beta Was this translation helpful? Give feedback.
-
@niconbwthanks for your reply. Here’e the branch where I tested this: https://github.com/sayakpaul/wine/tree/wandb-integration./ |
Beta Was this translation helpful? Give feedback.
-
Hi @sayakpaul
More about locations for the tools cache in each GitHub-hosted runner. |
Beta Was this translation helpful? Give feedback.
-
Thank you for the pointers, @niconbw. Could you also elaborate as to why the message “Cache restored …” was there in my logs? Am I missing out on something? |
Beta Was this translation helpful? Give feedback.
-
Hi @sayakpaul |
Beta Was this translation helpful? Give feedback.
-
Fair enough @niconbw. Thank you for your guidance. |
Beta Was this translation helpful? Give feedback.
-
@niconbw I tried your suggestions but I am still not sure if caching is indeed being reflected. Here are the logs: https://github.com/sayakpaul/wine/runs/975167639?check_suite_focus=true. |
Beta Was this translation helpful? Give feedback.
-
Hi @sayakpaul
|
Beta Was this translation helpful? Give feedback.
-
@niconbw you probably forgot to include |
Beta Was this translation helpful? Give feedback.
-
Hi @sayakpaul |
Beta Was this translation helpful? Give feedback.
-
@niconbw I appended the necessary stuff in the YAML file and I got it to working: Thanks much. |
Beta Was this translation helpful? Give feedback.
-
Hi @sayakpaul |
Beta Was this translation helpful? Give feedback.
-
jobs:
|
Beta Was this translation helpful? Give feedback.
Hi @sayakpaul
Please try again with the following yml: