A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/marketplace/actions/cache-python-deps below:

cache-python-deps · Actions · GitHub Marketplace · GitHub

re-actors/cache-python-deps@release/v1 — ABI-sensitive cache management

A GitHub Action maintaining caches dependent on Python runtime and ABI stability.

The action is meant to be run instead of using the cache input of actions/setup-python.

To use the action add the following step to your workflow file (e.g. .github/workflows/ci-cd.yml)

- name: Restore pip cache
  uses: re-actors/cache-python-deps@release/v1
  with:
    cache-key-for-dependency-files: >-
      ${{
        hashFiles(
          '.pre-commit-config.yaml',
          'requirements/**',
          'tox.ini',
          'tox.toml',
          'pyproject.toml'
        )
      }}
cache-directory-lookup-command

A command that prints cache directory to standard output. Defaults to pip cache lookup. (DEFAULT: python -Im pip cache dir)

cache-key-for-dependency-files

A cache key string derived from the dependency declaration files. Should be pre-computed by the caller. Something like hashFiles() should do. (REQUIRED)

The cache-key-for-dependency-files must be computed before calling the action. It would typically depend on the contents of files containing dependency declarations. This means that the dependency files should be on disk before that (they can be retrieved by calling one of re-actors/checkout-python-sdist or actions/checkout, for example).

In case the cache-key-for-dependency-files computation is done in an early job in the workflow and the value is just being passed around, this action does not necessarily have to be called after checking out the repository. It should however still be invoked after actions/setup-python so that the correct cache entry is picked up.

At the moment, it is used by @aio-libs, @CherryPy, with more to come.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4