File tree Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Expand file tree Collapse file tree 2 files changed +20
-0
lines changed Original file line number Diff line number Diff line change 8
8
jobs :
9
9
tests :
10
10
runs-on : ubuntu-latest
11
+ permissions :
12
+ # Gives the action the necessary permissions for publishing new
13
+ # comments in pull requests.
14
+ pull-requests : write
15
+ # Gives the action the necessary permissions for pushing data to the
16
+ # python-coverage-comment-action branch, and for editing existing
17
+ # comments (to avoid publishing multiple comments in the same PR)
18
+ contents : write
11
19
steps :
12
20
- uses : actions/checkout@v4
13
21
30
38
flask init-db
31
39
coverage run -m pytest
32
40
coverage report -m
41
+
42
+ - name : Coverage comment
43
+ uses : py-cov-action/python-coverage-comment-action@v3
44
+ with :
45
+ GITHUB_TOKEN : ${{ github.token }}
46
+ MINIMUM_GREEN : 90
47
+ MINIMUM_ORANGE : 80
Original file line number Diff line number Diff line change @@ -41,6 +41,11 @@ line-length = 127
41
41
target-version = [' py311' ]
42
42
include = ' \.pyi?$'
43
43
44
+ [tool .coverage .run ]
45
+ branch = true
46
+ relative_files = true
47
+ source = [" eligibility_server" ]
48
+
44
49
[tool .pyright ]
45
50
include = [" eligibility_server" , " tests" ]
46
51
You can’t perform that action at this time.
0 commit comments