Skip to content

Commit 562ceed

Browse files
committed
Add Pip cache to CI
1 parent 3bd411d commit 562ceed

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/python-package.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@ jobs:
1919
uses: actions/setup-python@v2
2020
with:
2121
python-version: ${{ matrix.python-version }}
22-
22+
- uses: actions/cache@v2
23+
with:
24+
path: ~/.cache/pip
25+
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}
26+
restore-keys: |
27+
${{ runner.os }}-pip-
2328
- name: Install dependencies
2429
run: |
2530
sudo apt-get update -qq
2631
sudo apt-get install -qq swig python-dev libxml2-dev libxmlsec1-dev
2732
make install-req
2833
make install-test
29-
3034
- name: Test
3135
run: |
3236
make pytest

0 commit comments

Comments
 (0)