File tree Expand file tree Collapse file tree 1 file changed +30
-3
lines changed Expand file tree Collapse file tree 1 file changed +30
-3
lines changed Original file line number Diff line number Diff line change 11name : CI
22on : [push, pull_request]
3+ concurrency :
4+ group : ${{ github.head_ref || github.run_id }}
5+ cancel-in-progress : true
6+
7+ permissions :
8+ contents : read
9+
310jobs :
11+ lint :
12+ name : Lint
13+ runs-on : ubuntu-latest
14+ steps :
15+ - name : Check out repository
16+ uses : actions/checkout@v3
17+ - uses : actions/setup-python@v4
18+ with :
19+ python-version : ' 3.9.16'
20+ cache : ' pip' # caching pip dependencies
21+ - run : python -m pip install pre-commit
22+ shell : bash
23+ - run : python -m pip freeze --local
24+ shell : bash
25+ - uses : actions/cache@v3
26+ with :
27+ path : ~/.cache/pre-commit
28+ key : pre-commit-3|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }}
29+ - run : pre-commit run --show-diff-on-failure --color=always --all-files
30+ shell : bash
431 test :
532 runs-on : ubuntu-latest
633 services :
@@ -16,10 +43,10 @@ jobs:
1643 options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
1744 steps :
1845 - name : Check out repository
19- uses : actions/checkout@v2
20- - uses : actions/setup-python@v2
46+ uses : actions/checkout@v3
47+ - uses : actions/setup-python@v4
2148 with :
22- python-version : 3.9.16
49+ python-version : " 3.9.16"
2350 - name : Cache Python dependencies
2451 uses : actions/cache@v2
2552 env :
You can’t perform that action at this time.
0 commit comments