File tree Expand file tree Collapse file tree 2 files changed +34
-26
lines changed
Expand file tree Collapse file tree 2 files changed +34
-26
lines changed Original file line number Diff line number Diff line change 1+ name : " Testing Pull Request"
2+
3+ on :
4+ pull_request_target :
5+ branches :
6+ - " master"
7+ - " dev"
8+
9+ jobs :
10+ coverage : # #################################################################
11+ runs-on : ubuntu-latest
12+
13+ steps :
14+ - uses : actions/checkout@v4
15+
16+ - name : Install Python dependencies
17+ run : |
18+ python3 -m pip install --upgrade pip
19+ python3 -m pip install .[test]
20+
21+ - name : Generate coverage report
22+ run : |
23+ python3 -m pytest --cov-report term --cov-report xml:cobertura.xml --cov=pina
24+
25+ - name : Produce the coverage report
26+ uses : insightsengineering/coverage-action@v2
27+ with :
28+ path : ./cobertura.xml
29+ threshold : 80.123
30+ fail : true
31+ publish : true
32+ coverage-summary-title : " Code Coverage Summary"
Original file line number Diff line number Diff line change 11name : " Testing Pull Request"
22
33on :
4- pull_request_target :
4+ pull_request :
55 branches :
66 - " master"
77 - " dev"
5151 - name : Build Documentation
5252 run : |
5353 make html SPHINXOPTS+='-W'
54- working-directory : docs/
55-
56- coverage : # #################################################################
57- runs-on : ubuntu-latest
58-
59- steps :
60- - uses : actions/checkout@v4
61-
62- - name : Install Python dependencies
63- run : |
64- python3 -m pip install --upgrade pip
65- python3 -m pip install .[test]
66-
67- - name : Generate coverage report
68- run : |
69- python3 -m pytest --cov-report term --cov-report xml:cobertura.xml --cov=pina
70-
71- - name : Produce the coverage report
72- uses : insightsengineering/coverage-action@v2
73- with :
74- path : ./cobertura.xml
75- threshold : 80.123
76- fail : true
77- publish : true
78- coverage-summary-title : " Code Coverage Summary"
54+ working-directory : docs/
You can’t perform that action at this time.
0 commit comments