Skip to content

Commit b052d06

Browse files
authored
Activate coverage report (#269)
* Activate coverage report
1 parent ca90444 commit b052d06

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

.github/workflows/ci.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ jobs:
9898
9999
- name: Running pytest
100100
shell: bash -l {0}
101-
run: python -m pytest -vv
101+
run: python -m pytest -vv
102102
- name: Running example - cosmosis - cosmic-shear
103103
shell: bash -l {0}
104104
run: |
@@ -153,3 +153,13 @@ jobs:
153153
cosmosis cluster_counts_redshift_richness.ini
154154
cosmosis cluster_mean_mass_redshift_richness.ini
155155
cosmosis cluster_counts_mean_mass_redshift_richness.ini
156+
- name: Code coverage
157+
if: ${{ (matrix.os == 'ubuntu') && (matrix.python-version == '3.11') }}
158+
shell: bash -l {0}
159+
env:
160+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
161+
run: |
162+
python -m pip install --no-input coveralls
163+
coverage run --source=firecrown -m pytest tests/
164+
coveralls --service=github
165+

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Firecrown
33
=========
44

5-
[![firecrown-ci](https://github.com/LSSTDESC/firecrown/actions/workflows/ci.yml/badge.svg)](https://github.com/LSSTDESC/firecrown/actions/workflows/ci.yml) [![Documentation !Status](https://readthedocs.org/projects/ccl/badge/?version=latest)](https://firecrown.readthedocs.io/en/latest/?badge=latest)
5+
[![firecrown-ci](https://github.com/LSSTDESC/firecrown/actions/workflows/ci.yml/badge.svg)](https://github.com/LSSTDESC/firecrown/actions/workflows/ci.yml) [![Documentation !Status](https://readthedocs.org/projects/ccl/badge/?version=latest)](https://firecrown.readthedocs.io/en/latest/?badge=latest) [![Coverage Status](https://coveralls.io/repos/github/LSSTDESC/firecrown/badge.svg?branch=master)](https://coveralls.io/github/LSSTDESC/firecrown?branch=master)
66

77
Firecrown is a Python package that provides the DESC *framework* to implement likelihoods,
88
as well as specific likelihood implementations. Firecrown is intended to be usable *from*

0 commit comments

Comments
 (0)