Skip to content

Commit c636d27

Browse files
committed
feat(pytest): Cache the numpy compilation result and the dependencies
The cache gets invalidated whenever the checksum of the pyproject.toml file changes
1 parent e0006e1 commit c636d27

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/pytest.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,16 @@ jobs:
4545
with:
4646
python-version: ${{ matrix.python-version }}
4747

48+
- name: Set up pip cache
49+
uses: actions/cache@v4
50+
with:
51+
path: |
52+
~/.cache/pip
53+
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('**/pyproject.toml') }}
54+
restore-keys: |
55+
${{ runner.os }}-pip-${{ matrix.python-version }}-
56+
${{ runner.os }}-pip-
57+
4858
- name: Install dependencies
4959
run: |
5060
pip install .[dev]

0 commit comments

Comments
 (0)