Skip to content

Commit

Permalink
Issue #141: Switch to pytest for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
SonOfLope committed Oct 3, 2024
1 parent ec6ce0f commit 61af05c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/workflow-lint-test-python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,13 @@ jobs:
with:
secrets: ${{ toJSON(secrets) }}

- name: Test with unittest
- name: Test with pytest
run: |
project_path="${{ inputs.project-path || '.' }}"
python -m unittest discover -s $project_path/tests
python -m pytest
- name: Run tests with coverage (coverage must be at least 80% to pass)
if: inputs.skip-coverage != 'true'
run: |
project_path="${{ inputs.project-path || '.' }}"
python -m pytest --cov=. --cov-fail-under=80
version-bump-check:
Expand Down

0 comments on commit 61af05c

Please sign in to comment.