Skip to content

Commit 638746c

Browse files
authored
Merge pull request #256 from deepmodeling/codecov
ci: add codecov
2 parents e4450a0 + f2261ef commit 638746c

2 files changed

Lines changed: 8 additions & 2 deletions

File tree

.github/workflows/cicd-ut.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,10 @@ jobs:
2222
2323
- name: Run tests
2424
run: |
25-
python -m pytest tests -vv
25+
python -m pytest tests -vv --cov --cov-branch --cov-report=xml
26+
27+
- name: Upload coverage reports to Codecov
28+
uses: codecov/codecov-action@v5
29+
with:
30+
token: ${{ secrets.CODECOV_TOKEN }}
31+
slug: deepmodeling/LAMBench

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ mace = ["mace-torch"]
3838
mattersim = ["mattersim >= 1.1.1"]
3939
orb = ["orb-models","pynanoflann@git+https://github.com/dwastberg/pynanoflann#egg=af434039ae14bedcbb838a7808924d6689274168"]
4040
sevenn = ["sevenn"]
41-
test = ["pytest"]
41+
test = ["pytest", "pytest-cov"]
4242
dflow = ["pydflow", "lbg"]
4343
phonopy = ["phonopy@git+https://github.com/phonopy/phonopy.git", "scikit-learn"]
4444

0 commit comments

Comments
 (0)