Skip to content

Commit

Permalink
Added input parameter 'fail_under' for CheckDocumentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Paebbels committed Jun 18, 2024
1 parent 607637b commit 92ce834
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/CheckDocumentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ on:
description: 'Source code directory to check.'
required: true
type: string
# fail_below:
# description: 'Minimum required documentation coverage level'
# required: false
# default: 75
# type: string
fail_under:
description: 'Minimum required documentation coverage level'
required: false
default: 80
type: string

jobs:
DocCoverage:
Expand All @@ -59,9 +59,9 @@ jobs:
- name: Run 'interrogate' Documentation Coverage Check
continue-on-error: true
run: |
interrogate -c pyproject.toml
interrogate -c pyproject.toml --fail-under=${{ inputs.fail_under }}
- name: Run 'docstr_coverage' Documentation Coverage Check
continue-on-error: true
run: |
docstr_coverage -v ${{ inputs.directory }}
docstr-coverage -v 2 --fail-under=${{ inputs.fail_under }} ${{ inputs.directory }}

0 comments on commit 92ce834

Please sign in to comment.