Skip to content

Commit

Permalink
updated CI to add codecoverage badge
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurmloureiro committed Dec 5, 2023
1 parent 313ab13 commit 416368c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,11 @@ jobs:
python -m pip install --upgrade pip
python -m pip install .
pytest ./tests
# Perform the unit test and outputs a coverage report
- name: Test with pytest
run: pytest --cov=mydescpackage --cov-report xml ./tests

# Uploads the code coverage results to codecov.io
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v2
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ dependencies = [
"pytest>=7.2.5",
"argparse>=1.0",
"sacc>=0.12",
"pytest-cov",
]
keywords = ["desc", "python", "blinding", "cosmosis"]
dynamic = ["version"]
Expand Down

0 comments on commit 416368c

Please sign in to comment.