8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 26356dd commit 1c6e32fCopy full SHA for 1c6e32f
.github/workflows/pre-commit.yaml
@@ -2,6 +2,12 @@
2
3
on:
4
workflow_call:
5
+ inputs:
6
+ python-version:
7
+ description: 'Python environment version'
8
+ default: '3.11'
9
+ required: false
10
+ type: string
11
12
13
jobs:
@@ -12,9 +18,15 @@ jobs:
18
- name: "Checkout repository"
19
uses: actions/checkout@v3
14
20
21
+ - name: "Setup Python"
22
+ uses: actions/setup-python@v4
23
+ with:
24
+ python-version: "${{ inputs.python-version }}"
25
+ cache: 'pip'
26
+
15
27
- name: "Install pre-commit"
16
28
run: |
17
- python -m pip install pre-commit
29
+ pip install pre-commit
30
31
- name: "Cache pre-commit environment"
32
uses: actions/cache@v3
0 commit comments