Skip to content

Commit 5f08423

Browse files
committed
fix coverage report
revert to using coverage directly, newer pytest-cov seems to require that tests live in a folder with __init__.py
1 parent 7c23979 commit 5f08423

2 files changed

Lines changed: 4 additions & 10 deletions

File tree

.github/workflows/master.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,8 @@ jobs:
5656
pip install pytest-timeout
5757
- name: Run coverage
5858
run: |
59-
pytest --cov=spatialmath --cov-report xml:coverage.xml
60-
coverage report
59+
coverage run -m pytest
60+
coverage xml --omit='tests/*.py,tests/base/*.py'
6161
- name: upload coverage to Codecov
6262
uses: codecov/codecov-action@v3
6363
with:

pyproject.toml

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,15 +53,13 @@ dependencies = [
5353
dev = [
5454
"sympy",
5555
"pytest",
56-
"pytest-cov",
5756
"coverage",
58-
"codecov",
59-
"recommonmark",
6057
"flake8"
6158
]
6259

6360
docs = [
64-
"sphinx",
61+
"sphinx",
62+
"recommonmark",
6563
"sphinx_rtd_theme",
6664
"sphinx-autorun",
6765
"sphinxcontrib-jsmath",
@@ -85,7 +83,3 @@ packages = [
8583
line-length = 88
8684
target-version = ['py37']
8785
exclude = "camera_derivatives.py"
88-
89-
[tool.coverage.run]
90-
omit = [
91-
]

0 commit comments

Comments
 (0)