Skip to content

Commit

Permalink
Minor updates and add coverage tests with make
Browse files Browse the repository at this point in the history
  • Loading branch information
Maksym Zemlianyi committed Dec 2, 2024
1 parent d603645 commit 8cd94f0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
8 changes: 2 additions & 6 deletions .github/workflows/python-test-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
make help
- name: Github Action for testing the code
run: coverage run -m unittest discover

- name: Github Action to retrieve coverage percentage
id: total-coverage
run: coverage report --fail-under=75
run: make coverage
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,12 @@ lint: # Lint the codebase
poetry run flake8 --max-line-length=120 --ignore=E731
@echo "======= Code linting completed successfully. =======\n"

coverage: # Check coverage the codebase
@echo "======= Running coverage for code... ======="
coverage run --omit="*/__init__.py,*/tests/*" -m unittest discover -s tests
coverage report --fail-under=75
@echo "======= Code coverage completed successfully. =======\n"

patch: # Increment package version
@echo "Patching package version..."
poetry version patch
Expand Down

0 comments on commit 8cd94f0

Please sign in to comment.