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

Implement cache-dependency-path equivalent #1

Closed
richardsheridan opened this issue Apr 5, 2024 · 0 comments · Fixed by #2
Closed

Implement cache-dependency-path equivalent #1

richardsheridan opened this issue Apr 5, 2024 · 0 comments · Fixed by #2

Comments

@richardsheridan
Copy link

I was about to post this issue over in baipp but this might be a better place for it.

The default cache key ${{runner.os}}-uv is not fine-grained enough to work with a heterogeneous CI/CD pipeline with separated build and test steps, because the requirements to build may be very different from the requirements to run and test. since baipp runs first, it will have a cache miss and save the uv cache for the build step, then any subsequent run using setup-cached-uv will have a cache hit, but only primed for the build dependencies and unable to update the cache with additional test dependencies.

Hopefully setup-python will eventually have cache: uv but until then it would be swell if I could add:

- uses: hynek/setup-cached-uv
  with:
    cache-dependency-path: '**/requirements-dev.txt'

which would result in cache keys like:

setup-cached-uv-Linux-22.04-Ubuntu-python-3.12.2-de25a2691d32d697d64ac0f45eb15fbab0ef7c4ca684a123bb5ec913fb6498d0
@hynek hynek mentioned this issue Apr 6, 2024
@hynek hynek linked a pull request Apr 6, 2024 that will close this issue
@hynek hynek closed this as completed in #2 Apr 7, 2024
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 a pull request may close this issue.

1 participant