File tree Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Expand file tree Collapse file tree 1 file changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Check Code
2
+ on :
3
+ pull_request :
4
+
5
+ jobs :
6
+ static-analysis :
7
+ runs-on : ubuntu-latest
8
+ steps :
9
+ - uses : actions/checkout@v3
10
+ with :
11
+ fetch-depth : 0
12
+ - name : Set up Python 3.9
13
+ uses : actions/setup-python@v4
14
+ with :
15
+ python-version : 3.9
16
+
17
+
18
+ with :
19
+ virtualenvs-create : true
20
+ virtualenvs-in-project : true
21
+
22
+ - name : Cache Dependencies
23
+ uses : actions/cache@v2
24
+ id : cache-dependencies
25
+ with :
26
+ path : .venv
27
+ key : venv-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
28
+
29
+ - name : Install Dependencies if cache doesn't hit
30
+ if : steps.cache-dependencies.cache-hit != 'true'
31
+ run : poetry install
32
+
33
+ - name : Check Code Styles
34
+ run : poetry run invoke check-code-style
35
+
36
+ - name : Check Types
37
+ run : poetry run invoke check-types
You can’t perform that action at this time.
0 commit comments