Skip to content

Commit 19c1904

Browse files
committed
cache pip
1 parent f1c0cf1 commit 19c1904

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,22 @@ jobs:
4141
runs-on: ${{ matrix.os }}
4242
steps:
4343
- uses: actions/checkout@v2
44+
4445
- name: Set up Python ${{ matrix.python-version }}
4546
uses: actions/setup-python@v2
4647
with:
4748
python-version: ${{ matrix.python-version }}
49+
- uses: actions/cache@v2
50+
with:
51+
path: ~/.cache/pip
52+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
53+
restore-keys: |
54+
${{ runner.os }}-pip-
55+
4856
- name: Install dependencies
4957
run: |
5058
python -m pip install --upgrade pip
5159
pip install -r requirements.txt
5260
53-
- run: cp .proselintrc ~/
61+
- run: cp .proselintrc ~/
5462
- run: proselint src/content

0 commit comments

Comments
 (0)