Skip to content

use cache if available, but do not upload it #315

Closed
@Ben-grmbl

Description

@Ben-grmbl

Is it possible to use an existing cache entry, if a matching one exist, but not upload any at the end, if there is none?

My use case:

  • a python project with multiple optional dependency groups
  • a matrix workflow that executes tests with multiple combinations of these optional dependencies

so for each matrix test, only certain dependencies are included with uv sync --extra ....

I want to cache only the version with all dependencies.

But depending on which workflow finishes first, after the lock file changes, that workflow's subset of features will be uploaded

I could of course execute uv sync --all-extras after the tests, but that seems wasteful.

Is there a way to disable uploading the new cache for specific cases?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions