File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -21,19 +21,22 @@ jobs:
21
21
with :
22
22
python-version : ${{ matrix.python-version }}
23
23
24
- - name : Cache pre-commit environment
24
+ - name : Cache pre-commit and coverage dependencies
25
25
uses : actions/cache@v3
26
26
with :
27
- path : ~/.cache/pre-commit
28
- key : ${{ runner.os }}-pre-commit-${{ hashFiles('.pre-commit-config.yaml') }}
27
+ path : |
28
+ ~/.cache/pre-commit
29
+ ~/.cache/pip
30
+ key : ${{ runner.os }}-dependencies-${{ hashFiles('.pre-commit-config.yaml') }}-${{ matrix.python-version }}
29
31
restore-keys : |
30
- ${{ runner.os }}-pre-commit-
32
+ ${{ runner.os }}-dependencies-${{ matrix.python-version }}-
33
+ ${{ runner.os }}-dependencies-
31
34
32
35
- name : Install dependencies
33
36
run : python3 -m pip install pre-commit coverage
34
37
35
38
- name : Run pre-commit
36
- run : pre-commit run --all-files
39
+ run : pre-commit run --from-ref origin/master --to-ref HEAD
37
40
38
41
- name : Generate
39
42
run : coverage run ./parse.py -c -chisel -sverilog -rust -latex -spinalhdl -go "rv*" "unratified/rv*"
You can’t perform that action at this time.
0 commit comments