File tree Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Expand file tree Collapse file tree 1 file changed +33
-1
lines changed Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ name: Tests
2
2
3
3
on :
4
4
push :
5
- branches : [main, develop, findhao/setup_ci]
5
+ branches : [main, develop, findhao/setup_ci, findhao/add_linter ]
6
6
pull_request :
7
7
branches : [main]
8
8
workflow_dispatch :
23
23
type : boolean
24
24
25
25
jobs :
26
+ format-check :
27
+ runs-on : ubuntu-latest
28
+ timeout-minutes : 10
29
+ steps :
30
+ - uses : actions/checkout@v4
31
+
32
+ - name : Set up Python 3.11
33
+ uses : actions/setup-python@v4
34
+ with :
35
+ python-version : " 3.11"
36
+
37
+ - name : Cache pip dependencies
38
+ uses : actions/cache@v3
39
+ with :
40
+ path : ~/.cache/pip
41
+ key : ${{ runner.os }}-pip-format-${{ hashFiles('**/pyproject.toml') }}
42
+ restore-keys : |
43
+ ${{ runner.os }}-pip-format-
44
+
45
+ - name : Install development dependencies
46
+ run : |
47
+ make install-dev
48
+
49
+ - name : Check code formatting
50
+ run : |
51
+ make format-check
52
+
53
+ - name : Check linting
54
+ run : |
55
+ make lint-check
56
+
26
57
test :
27
58
runs-on : 4-core-ubuntu-gpu-t4
28
59
timeout-minutes : 120
60
+ needs : format-check
29
61
steps :
30
62
- uses : actions/checkout@v4
31
63
You can’t perform that action at this time.
0 commit comments