Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 24, 2021 03:03 pm GMT

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 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.


Original Link: https://dev.to/epassaro/caching-anaconda-environments-on-github-actions-2d08

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To