Skip to content

Commit

Permalink
Issue #141: adds boolean to run coverage for monorepo ailab-datastore
Browse files Browse the repository at this point in the history
  • Loading branch information
SonOfLope committed Aug 21, 2024
1 parent 6d12d24 commit bd6be5c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/workflow-lint-test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ on:
project-path:
required: false
type: string
run-coverage:
required: false
type: boolean
default: true

permissions:
actions: read
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit bd6be5c

Please sign in to comment.