File tree Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Expand file tree Collapse file tree 1 file changed +15
-2
lines changed Original file line number Diff line number Diff line change 12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v3
15
- - uses : actions/setup-python@v3
15
+ - uses : actions/setup-python@v4
16
16
with :
17
17
python-version : ' 3.10'
18
+ - name : Get pip cache dir
19
+ id : pip-cache
20
+ run : |
21
+ echo "dir=$(pip cache dir)" >> $GITHUB_OUTPUT
22
+ - name : pip/pre-commit cache
23
+ uses : actions/cache@v3
24
+ with :
25
+ path : |
26
+ ${{ steps.pip-cache.outputs.dir }}
27
+ ~/.cache/pre-commit
28
+ key : ${{ runner.os }}-pip-pre-commit-${{ hashFiles('**/.pre-commit-config.yaml') }}
29
+ restore-keys : |
30
+ ${{ runner.os }}-pip-pre-commit
18
31
- name : pre-commit
19
32
run : |
20
33
pip install -U pre-commit
59
72
pip3 install --upgrade coveralls
60
73
coveralls --service=github --finish
61
74
env :
62
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
75
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments