File tree 1 file changed +30
-3
lines changed
1 file changed +30
-3
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
2
on : [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
+
3
10
jobs :
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
4
31
test :
5
32
runs-on : ubuntu-latest
6
33
services :
@@ -16,10 +43,10 @@ jobs:
16
43
options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
17
44
steps :
18
45
- 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
21
48
with :
22
- python-version : 3.9.16
49
+ python-version : " 3.9.16"
23
50
- name : Cache Python dependencies
24
51
uses : actions/cache@v2
25
52
env :
You can’t perform that action at this time.
0 commit comments