File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77
88 runs-on : ubuntu-latest
99
10+ permissions :
11+ contents : read
12+ pull-requests : write
13+
1014 steps :
1115 - uses : actions/checkout@v4
1216 - name : Set up Python 3.9
2529 # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
2630 flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
2731 - name : Run unit tests
28- run : |
29- python panc/src/main/scripts/panlint/tests.py
30- - name : Produce coverage report
3132 run : |
3233 coverage run --source=panc/src/main/scripts/panlint --omit panc/src/main/scripts/panlint/tests.py panc/src/main/scripts/panlint/tests.py
34+ - name : Report Coverage
35+ env :
36+ TERM : xterm
37+ run : |
38+ coverage report
39+ coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
40+ # Produce a quick and dirty coloured annotation with numbered lines
41+ coverage annotate
42+ awk -v ln=1 '{printf("%4d %s\n", ln++, $0) }' panc/src/main/scripts/panlint/panlint.py,cover |
43+ sed 's#^\( \+[[:digit:]]\+\) !#'"$(tput setaf 1)"'\1 !#' |
44+ sed 's#^\( \+[[:digit:]]\+\) >#'"$(tput setaf 2)"'\1 >#' |
45+ sed 's#^\( \+[[:digit:]]\+\) #'"$(tput setaf 7)"'\1 #'
You can’t perform that action at this time.
0 commit comments