Caching Anaconda environments on GitHub Actions

My Workflow

One of the most time-consuming tasks on my workflows is the solving, download and installation of Anaconda environments. In some cases, just solving the dependencies can take up to 10 minutes depending on the platform you are bui…


This content originally appeared on DEV Community and was authored by epassaro

My Workflow

One of the most time-consuming tasks on my workflows is the solving, download and installation of Anaconda environments. In some cases, just solving the dependencies can take up to 10 minutes depending on the platform you are building on.

This workflow aims to save time and computational resources by caching deployed Anaconda environments using the actions/cache task and the conda-incubator/setup-miniconda action.

Shorter build times and better resource management will benefit not just your organization but also the environment.

Submission Category:

Maintainer Must-Haves

Yaml File or Link to Code

GitHub logo epassaro / cache-conda-envs

Speed up your builds by caching Anaconda environments on GitHub Actions

cache-conda-envs 🐍 ⚡

Speed up your builds by caching Anaconda environments on GitHub Actions




Additional Resources / Info

I'm glad to say that the results of my work have been recently added to the conda-incubator/setup-miniconda action's documentation and should reach more developers soon.

It's worth mentioning that the documentation of actions/cache included use cases for many package managers, but not for conda. On the other hand, the setup-miniconda documentation described a way to cache the downloaded packages, but that method makes the pipelines even slower.

Finally, I published a post describing the workflow step-by-step.


This content originally appeared on DEV Community and was authored by epassaro


Print Share Comment Cite Upload Translate Updates
APA

epassaro | Sciencx (2021-11-24T15:03:39+00:00) Caching Anaconda environments on GitHub Actions. Retrieved from https://www.scien.cx/2021/11/24/caching-anaconda-environments-on-github-actions/

MLA
" » Caching Anaconda environments on GitHub Actions." epassaro | Sciencx - Wednesday November 24, 2021, https://www.scien.cx/2021/11/24/caching-anaconda-environments-on-github-actions/
HARVARD
epassaro | Sciencx Wednesday November 24, 2021 » Caching Anaconda environments on GitHub Actions., viewed ,<https://www.scien.cx/2021/11/24/caching-anaconda-environments-on-github-actions/>
VANCOUVER
epassaro | Sciencx - » Caching Anaconda environments on GitHub Actions. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2021/11/24/caching-anaconda-environments-on-github-actions/
CHICAGO
" » Caching Anaconda environments on GitHub Actions." epassaro | Sciencx - Accessed . https://www.scien.cx/2021/11/24/caching-anaconda-environments-on-github-actions/
IEEE
" » Caching Anaconda environments on GitHub Actions." epassaro | Sciencx [Online]. Available: https://www.scien.cx/2021/11/24/caching-anaconda-environments-on-github-actions/. [Accessed: ]
rf:citation
» Caching Anaconda environments on GitHub Actions | epassaro | Sciencx | https://www.scien.cx/2021/11/24/caching-anaconda-environments-on-github-actions/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.