Skip to content

Commit

Permalink
feat(ci): add cache-dependency-path (#306)
Browse files Browse the repository at this point in the history
<!--
Thank you for contributing to Ruff! To help us out with reviewing,
please consider the following:

- Does this pull request include a summary of the change? (See below.)
- Does this pull request include a descriptive title?
- Does this pull request include references to any relevant issues?
-->

## Summary

This PR adds the `cache-dependency-path` parameter which allows us to
explicitly specify files which contain packages. More information can be
found on the [docs for
actions/setup-python](https://github.com/actions/setup-python/blob/main/docs/advanced-usage.md#caching-packages)
  • Loading branch information
SauravMaheshkar authored Nov 2, 2023
1 parent b5f9736 commit 6a1a7b1
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,10 @@ jobs:
with:
python-version: "3.11"
cache: 'pip'
cache-dependency-path: |
pyproject.toml
requirements.txt
requirements-dev.txt
- name: Install dependencies
run: just install
- name: Run checks
Expand Down Expand Up @@ -86,6 +90,10 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
pyproject.toml
requirements.txt
requirements-dev.txt
- name: Install dependencies
run: |
Expand Down

0 comments on commit 6a1a7b1

Please sign in to comment.