File tree Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Expand file tree Collapse file tree 2 files changed +41
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : Pylint
2
2
3
- on : [push]
3
+ on :
4
+ workflow_run :
5
+ workflows :
6
+ - Run Pytest
7
+ types :
8
+ - completed
9
+ push :
10
+ branches :
11
+ - main
12
+ pull_request :
4
13
5
14
jobs :
6
15
build :
16
+ needs : test
7
17
runs-on : ubuntu-latest
8
18
strategy :
9
19
matrix :
Original file line number Diff line number Diff line change
1
+ name : Run Pytest
2
+
3
+ on :
4
+ push :
5
+ branches :
6
+ - main
7
+ pull_request :
8
+
9
+ jobs :
10
+ test :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout code
15
+ uses : actions/checkout@v3
16
+
17
+ - name : Set up Python
18
+ uses : actions/setup-python@v4
19
+ with :
20
+ python-version : ' 3.x'
21
+
22
+ - name : Install dependencies
23
+ run : |
24
+ python -m pip install --upgrade pip
25
+ pip install -r requirements.txt
26
+
27
+ - name : Run Pytest
28
+ run : |
29
+ pytest
30
+
You can’t perform that action at this time.
0 commit comments