Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

caching environment for test routine #33

Closed
wants to merge 4 commits into from

Conversation

KatieBuc
Copy link

Reference Issues/PRs

Addressing issue #24, uses a cashed conda environment

What does this implement/fix? Explain your changes.

Following the example documentation given here: https://github.com/marketplace/actions/setup-miniconda

The steps are:

  • setup a Miniconda variant
  • adds current date to the cache key (refreshes cache every 24 hours)
  • if the cache does not exist, update the environment based on the environment file

Does your contribution introduce a new dependency? If yes, which one?

"conda (and mamba) resolves the dependencies declared in the YAML file according to the packages available on the channels at installation time. Since packages are updated all the time, you will not see these changes reflected in the cache until the key gets updated by date.

This means that the same environment file can make your tests pass locally but fail on CI, or the other way around. In that case, reset the cache manually to see if that leads to consistent results, or use a resolved environment file."

@codecov-commenter
Copy link

codecov-commenter commented Jul 29, 2022

Codecov Report

Merging #33 (fe4d4cb) into main (27ca157) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main      #33   +/-   ##
=======================================
  Coverage   58.23%   58.23%           
=======================================
  Files          18       18           
  Lines        1463     1463           
=======================================
  Hits          852      852           
  Misses        611      611           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@fkiraly fkiraly changed the title caching envoronment for test routine caching environment for test routine Aug 16, 2022
@fkiraly
Copy link
Contributor

fkiraly commented Nov 18, 2023

superseded by new GHA setup

@fkiraly fkiraly closed this Nov 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants