diff --git a/.github/workflows/workflow-lint-test-python.yml b/.github/workflows/workflow-lint-test-python.yml index 236f05ad..c47a62c6 100644 --- a/.github/workflows/workflow-lint-test-python.yml +++ b/.github/workflows/workflow-lint-test-python.yml @@ -12,6 +12,10 @@ on: project-path: required: false type: string + run-coverage: + required: false + type: boolean + default: true permissions: actions: read @@ -56,6 +60,7 @@ jobs: python -m unittest discover -s $project_path/tests - name: Run tests with coverage (coverage must be at least 80% to pass) + if: inputs.run-coverage == 'true' run: | project_path="${{ inputs.project-path || '.' }}" python -m pytest --cov=$project_path --cov-fail-under=80 $project_path/tests