-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add caching to tests #39
Conversation
This PR is ready to be reviewed. |
I am happy to review it, since Laurent is on holiday this week. So if you are ok with this, I will go ahead. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good to me, before merging we may want to quickly discuss this with Laurent early next week when he's back; up to you.
Cheers, I'll just merge it now then. If there need to be additional changes, I'm happy to fix it! |
* Avoid running the same tests twice in a PR * Cache python venv install * Set up cache for socrates * Move apt install back to the top * Fix path and cache key * Pull to local directory * Fix path to version file * Trigger workflow * Add caching for FWL_DATA directory * Expand path
This PR sets up caching for setting up JANUS and SOCRATES. This completely eliminates build times on repeated runs with the same SOCRATES or JANUS versions. This should reduce total test times by ~1.5 minutes for each run.
The caches are keyed by the python version and
pyproject.toml
for JANUS and toSOCRATES/version
for SOCRATES.I also scoped the test runs, so that they no longer run twice in a PR.
Closes #37
TODO
FWL_DATA
directoryFWL_DATA