Skip to content

Commit 8edc86c

Browse files
committed
Add codecov
1 parent 6741f52 commit 8edc86c

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

.github/workflows/testing.yml

+7-1
Original file line numberDiff line numberDiff line change
@@ -73,4 +73,10 @@ jobs:
7373
- name: Test with pytest
7474
run: |
7575
cd tests
76-
pytest
76+
pytest --cov=kliff --cov-report=xml
77+
78+
- uses: codecov/codecov-action@v4
79+
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' && github.repository == 'openkim/kliff'
80+
with:
81+
token: ${{ secrets.CODECOV_TOKEN }}
82+
file: ./coverage.xml

setup.py

+1
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ def get_readme():
117117
extras_require={
118118
"test": [
119119
"pytest",
120+
"pytest-cov",
120121
"kimpy",
121122
"emcee",
122123
"ptemcee @ git+https://github.com/yonatank93/ptemcee.git@enhance_v1.0.0",

0 commit comments

Comments
 (0)