File tree Expand file tree Collapse file tree 4 files changed +49
-71
lines changed Expand file tree Collapse file tree 4 files changed +49
-71
lines changed Original file line number Diff line number Diff line change
1
+ name : Pylint
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+ steps :
13
+ - name : Checkout code
14
+ uses : actions/checkout@v3
15
+
16
+ - name : Set up Python
17
+ uses : actions/setup-python@v4
18
+ with :
19
+ python-version : ' 3.x'
20
+
21
+ - name : Install dependencies
22
+ run : |
23
+ python -m pip install --upgrade pip
24
+ pip install -r requirements.txt
25
+
26
+ - name : Run Pytest
27
+ run : |
28
+ pytest
29
+
30
+ pylint :
31
+ runs-on : ubuntu-latest
32
+ needs : [test]
33
+ strategy :
34
+ matrix :
35
+ python-version : ["3.8", "3.9", "3.10"]
36
+ steps :
37
+ - uses : actions/checkout@v4
38
+ - name : Set up Python ${{ matrix.python-version }}
39
+ uses : actions/setup-python@v3
40
+ with :
41
+ python-version : ${{ matrix.python-version }}
42
+ - name : Install dependencies
43
+ run : |
44
+ python -m pip install --upgrade pip
45
+ pip install pylint requests cloudflare
46
+ - name : Analysing the code with pylint
47
+ run : |
48
+ pylint $(git ls-files '*.py')
Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
name : Continuous Delivery
2
2
3
3
on :
4
- workflow_run :
5
- workflows :
6
- - Pylint
7
- types :
8
- - completed
9
- push :
10
- branches :
11
- - main
4
+ workflow_dispatch :
12
5
13
6
# default: least privileged permissions across all jobs
14
7
permissions :
You can’t perform that action at this time.
0 commit comments