@Tieqiong
Can we try to implement the below change?
We shall use pytest-cov instead of using coverage to run pytest. The previous codecov 0% error occurred because the tests folder has been moved to the top directory level and coverage isn't able to import diffpy. due to the namespace.
So the GH actions can be modified
from:
run: |
coverage run -m pytest -vv -s
coverage report -m
codecov
to:
run: |
pytest --cov
coverage report -m
codecov
Reference:
Two more things to confirm with you:
I will also update .coveragerc to remove the source section.
Reference:
I will include pytest-cov in the test.txt dependency list.
@Tieqiong
Can we try to implement the below change?
We shall use
pytest-covinstead of using coverage to run pytest. The previous codecov 0% error occurred because the tests folder has been moved to the top directory level and coverage isn't able to import diffpy. due to the namespace.So the GH actions can be modified
from:
to:
Reference:
Two more things to confirm with you:
I will also update
.coveragercto remove thesourcesection.Reference:
I will include
pytest-covin thetest.txtdependency list.