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

Enable pip cache in GitHub Actions CI jobs #576

Merged
merged 6 commits into from
Mar 1, 2022
Merged

Conversation

juhoinkinen
Copy link
Member

This enables the cache for dependencies that are installed with pip in GH Actions jobs, while ensuring that all dependencies are upgraded (also the non-direct dependencies) by using the eager upgrade-strategy.

Test runs show that caching shortens the job run times ~30 s on average.

I leave this PR as draft, because this branch is based on resolve-deprecation-warnings branch (some unit tests started failing due to pkg_resources), so #575 should be merged first.

@juhoinkinen juhoinkinen added this to the 0.57 milestone Feb 22, 2022
@codecov
Copy link

codecov bot commented Feb 22, 2022

Codecov Report

Merging #576 (4b40ec5) into master (7c9a014) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #576   +/-   ##
=======================================
  Coverage   99.47%   99.47%           
=======================================
  Files          84       84           
  Lines        5568     5568           
=======================================
  Hits         5539     5539           
  Misses         29       29           

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7c9a014...4b40ec5. Read the comment docs.

@sonarcloud
Copy link

sonarcloud bot commented Mar 1, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@juhoinkinen juhoinkinen marked this pull request as ready for review March 1, 2022 08:51
@juhoinkinen juhoinkinen merged commit 2168ec4 into master Mar 1, 2022
@juhoinkinen juhoinkinen deleted the gh-actions-pip-cache branch March 1, 2022 08:52
@osma
Copy link
Member

osma commented Mar 1, 2022

👏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants