It can be useful to cache multiple directories, for example from different tools like pip and pre-commit.
With Travis CI (ignoring their pip: true shortcut):
cache:
directories:
- $HOME/.cache/pip
- $HOME/.cache/pre-commit
The Actions equivalent requires adding a duplicated step for each directory, something like:
- name: pip cache
uses: actions/cache@preview
with:
path: ~/.cache/pip
key: ${{ matrix.python-version }}-pip
- name: pre-commit cache
uses: actions/cache@preview
with:
path: ~/.cache/pre-commit
key: ${{ matrix.python-version }}-pre-commit
Perhaps also allow multiple directories in a single step, something like this?
- name: pip cache
uses: actions/cache@preview
with:
path:
- ~/.cache/pip
- ~/.cache/pre-commit
key: ${{ matrix.python-version }}
It can be useful to cache multiple directories, for example from different tools like pip and pre-commit.
With Travis CI (ignoring their
pip: trueshortcut):The Actions equivalent requires adding a duplicated step for each directory, something like:
Perhaps also allow multiple directories in a single step, something like this?