Skip to content

Commit

Permalink
Add codecov for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
ml-evs committed Dec 9, 2023
1 parent 3bcabed commit e8bceeb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,11 @@ jobs:
pip install -e .[tests,dev]
- name: Run tests
run: pytest -vv
run: pytest -vv --cov-report=xml --cov-report=term

- name: Upload coverage
uses: codecov/codecov-action@v3
with:
name: project
file: ./coverage.xml
flags: project
2 changes: 1 addition & 1 deletion src/mc_optimade/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ dependencies = [
]

[project.optional-dependencies]
tests = ["pytest~=7.4"]
tests = ["pytest~=7.4", "pytest-cov~=4.0"]
dev = ["black", "ruff", "pre-commit", "mypy", "isort", "types-all"]

[tool.ruff]
Expand Down

0 comments on commit e8bceeb

Please sign in to comment.