pittcsc / PittAPI

An API to easily get data from the University of Pittsburgh
https://pittapi.pittcsc.org
GNU General Public License v2.0
105 stars 30 forks source link

Add caching to GitHub Actions workflows #179

Closed tianyizheng02 closed 2 weeks ago

tianyizheng02 commented 2 weeks ago

Exactly what the title says, see https://github.com/marketplace/actions/cache

Assuming this works, this could significantly cut down on the runtime of our workflows by caching our dependencies

tianyizheng02 commented 2 weeks ago

Workflow runtime appears to have gone down by about half because of caching. First workflow run took 47 secs (since everything had to be cached for the first time), while the second run only took 27 secs. The first workflow took 35 secs to install all dependencies while the second took 17 secs.