diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index cf794a9..d110cd8 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -46,7 +46,11 @@ jobs: - name: Install dependencies run: make build-for-test - name: Report coverage - run: make cover-coveralls + run: + coverage run --source oldabe -m pytest + coverage report -m + coverage html + open coverage_html_report/index.html lint: runs-on: ubuntu-latest name: Lint the package diff --git a/Makefile b/Makefile index 5ce0315..7335e62 100644 --- a/Makefile +++ b/Makefile @@ -140,13 +140,13 @@ debug: test-debug tldr: test-tldr coverage: clean-test - coverage run --source $(PACKAGE-NAME) setup.py test --addopts $(UNIT_TESTS_PATH) + coverage run --source $(PACKAGE-NAME) -m pytest coverage report -m coverage html open coverage_html_report/index.html cover-coveralls: clean-test - coverage run --source $(PACKAGE-NAME) setup.py test --addopts $(UNIT_TESTS_PATH) + coverage run --source $(PACKAGE-NAME) -m pytest coveralls sdist: clean