File tree 1 file changed +35
-0
lines changed
1 file changed +35
-0
lines changed Original file line number Diff line number Diff line change
1
+
2
+ name : Python Coverage
3
+
4
+ on : [push, pull_request]
5
+
6
+ jobs :
7
+ build :
8
+
9
+ runs-on : ubuntu-latest
10
+
11
+ steps :
12
+ - name : Check out code
13
+ uses : actions/checkout@v2
14
+
15
+ - name : Set up Python
16
+ uses : actions/setup-python@v2
17
+ with :
18
+ python-version : ' 3.x'
19
+
20
+ - name : Install dependencies
21
+ run : |
22
+ python -m pip install --upgrade pip
23
+ pip install -r requirements.txt
24
+
25
+ - name : Run coverage
26
+ run : |
27
+ coverage run -m unittest discover
28
+ coverage html
29
+
30
+ - run : smokeshow upload cli/htmlcov
31
+ env :
32
+ SMOKESHOW_GITHUB_STATUS_DESCRIPTION : CLI Coverage {coverage-percentage}
33
+ SMOKESHOW_GITHUB_COVERAGE_THRESHOLD : 50
34
+ SMOKESHOW_GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
35
+ SMOKESHOW_GITHUB_PR_HEAD_SHA : ${{ github.event.pull_request.head.sha }}
You can’t perform that action at this time.
0 commit comments