File tree 2 files changed +51
-2
lines changed
2 files changed +51
-2
lines changed Original file line number Diff line number Diff line change @@ -2,8 +2,8 @@ name: Pull Request Validation Pipeline
2
2
on : [pull_request]
3
3
4
4
jobs :
5
- pr -validation :
6
- name : Pull Request Validation
5
+ code-quality -validation :
6
+ name : Code Quality Validation
7
7
runs-on : ubuntu-22.04
8
8
steps :
9
9
- name : Generate GitHub App Token
Original file line number Diff line number Diff line change 6
6
- main
7
7
8
8
jobs :
9
+ code-quality-validation :
10
+ name : Code Quality Validation
11
+ runs-on : ubuntu-22.04
12
+ steps :
13
+ - name : Generate GitHub App Token
14
+ id : generate_github_app_token
15
+
16
+ with :
17
+ app_id : ${{ secrets.GH_APP_ID }}
18
+ private_key : ${{ secrets.GH_APP_KEY }}
19
+
20
+ - name : Checkout repository
21
+ uses : actions/checkout@v3
22
+ with :
23
+ fetch-depth : 0
24
+ token : ${{ steps.generate_github_app_token.outputs.token }}
25
+ persist-credentials : true
26
+
27
+ - name : Setup Python
28
+ uses : actions/setup-python@v4
29
+ with :
30
+ python-version : 3.8
31
+
32
+ - name : Install & configure Poetry
33
+
34
+ with :
35
+ version : 1.5.1
36
+
37
+ - name : Install & validate Poetry dependencies
38
+ run : |
39
+ poetry install
40
+ poetry check
41
+
42
+ - name : Check pylint
43
+ run : |
44
+ set -e # fail on error
45
+ poetry run pylint -j 0 --fail-under=10.0 src
46
+
47
+ - name : Check isort
48
+ run : |
49
+ set -e # fail on error
50
+ poetry run isort --check-only .
51
+
52
+ - name : Check black
53
+ run : |
54
+ set -e # fail on error
55
+ poetry run black --check .
56
+
9
57
tag-release :
10
58
name : Tag & Release
11
59
runs-on : ubuntu-22.04
60
+ needs : code-quality-validation
12
61
steps :
13
62
- name : Generate GitHub App Token
14
63
id : generate_github_app_token
You can’t perform that action at this time.
0 commit comments