Skip to content

Commit d7ee990

Browse files
committed
cache
1 parent 7d1708d commit d7ee990

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.github/workflows/pylint.yml

+10-1
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,19 @@ jobs:
1414
with:
1515
python-version: '3.x'
1616

17+
# Caching pip dependencies
18+
- name: Cache pip dependencies
19+
uses: actions/cache@v2
20+
with:
21+
path: ~/.cache/pip
22+
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
23+
restore-keys: |
24+
${{ runner.os }}-pip-
25+
1726
- name: Install Dependencies
1827
run: |
1928
python -m pip install --upgrade pip
2029
pip install pylint
2130
2231
- name: Run Pylint
23-
run: pylint src/*.py
32+
run: pylint src/*.py --errors-only

0 commit comments

Comments
 (0)