Skip to content

Commit 25c2422

Browse files
committed
CI & CD: run pre-commit on GA Action
1 parent e83742c commit 25c2422

File tree

1 file changed

+16
-5
lines changed

1 file changed

+16
-5
lines changed

.github/workflows/analysis-coverage.yml

Lines changed: 16 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,24 @@ jobs:
2828
- uses: actions/checkout@v3
2929
- uses: actions/setup-python@v4
3030
with:
31-
python-version: '3.7'
31+
python-version: '3.8'
3232

33-
- name: Install from source
34-
run: python3 -m pip install . pylint
33+
- name: pre-commit cache
34+
uses: actions/cache@v3
35+
with:
36+
path: ~/.cache/pre-commit
37+
key: lint-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
38+
restore-keys: |
39+
lint-pre-commit-
40+
41+
- name: Making preparations
42+
run: |
43+
python3 -m pip install .
44+
python3 -m pip install wheel pre-commit pylint
45+
pre-commit install
3546
36-
- name: Pylint Analysis
37-
run: python3 -m pylint pillow_heif
47+
- name: Run Analysis
48+
run: pre-commit run --all-files --verbose --show-diff-on-failure
3849

3950
coverage-linux:
4051
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)