Skip to content

Commit dfc8313

Browse files
committed
add prek install step
1 parent 596530b commit dfc8313

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/actions/create-lint-wf/action.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,11 @@ runs:
3535
working-directory: create-lint-wf
3636

3737
# Run code style linting
38-
- name: run pre-commit rules
38+
- name: install prek & run pre-commit rules
3939
shell: bash
40-
run: prek run --all-files
40+
run: |
41+
pip install prek
42+
prek run --all-files
4143
working-directory: create-lint-wf
4244

4345
# Update modules to the latest version

.github/workflows/create-test-lint-wf-template.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,9 @@ jobs:
147147

148148
# Run code style linting
149149
- name: Run pre-commit
150-
run: prek run --all-files
150+
run: |
151+
pip install prek
152+
prek run --all-files
151153
working-directory: create-test-lint-wf
152154

153155
# Remove TODO statements

0 commit comments

Comments
 (0)