[daemonpy] Updated code coverage, fixed setup.py, updated docs #7
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: daemonpy_python_checker | |
on: | |
push: | |
branches: [ master ] | |
paths: | |
- 'daemonpy/**' | |
- 'tests/**' | |
- 'setup.py' | |
pull_request: | |
branches: [ master ] | |
paths: | |
- 'daemonpy/**' | |
- 'tests/**' | |
- 'setup.py' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Check max length of lines in modules | |
id: long_line_checker | |
run: | | |
modules_ok=0 | |
modules=($(find daemonpy/ tests/ -type f -name '*.py' -exec echo '{}' \;)) | |
for mod in "${modules[@]}"; do line_length=$(wc -L < "${mod}"); [[ $line_length -gt 80 ]] && modules_ok=1; done | |
[[ $modules_ok -eq 0 ]] && echo ok || exit 1 | |
- name: Check max number of lines in modules | |
id: num_line_checker | |
run: | | |
modules_ok=0 | |
modules=($(find daemonpy/ tests/ -type f -name '*.py' -exec echo '{}' \;)) | |
for mod in "${modules[@]}"; do line_numbers=$(wc -l < "${mod}"); [[ $line_numbers -gt 300 ]] && modules_ok=1; done | |
[[ $modules_ok -eq 0 ]] && echo ok || exit 1 |