Skip to content

Commit 1764d16

Browse files
committed
Have added Coverage tests
1 parent 0c52a7b commit 1764d16

File tree

3 files changed

+31
-1
lines changed

3 files changed

+31
-1
lines changed

.codecov.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
codecov:
2+
notify:
3+
require_ci_to_pass: yes
4+
5+
coverage:
6+
precision: 2
7+
round: down
8+
paths:
9+
- ./cgatcore/**
10+
ignore:
11+
- tests/**

.github/workflows/cgatcore_python.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,23 @@ jobs:
6060
pip list
6161
openssl version
6262
63+
- name: Install coverage
64+
run: |
65+
pip install coverage
66+
67+
- name: Run tests with coverage
68+
run: |
69+
coverage run -m pytest
70+
71+
- name: Generate coverage report
72+
run: |
73+
coverage report
74+
coverage xml
75+
76+
- name: Upload coverage to CodeCov
77+
run: |
78+
bash <(curl -s https://codecov.io/bash) -f coverage.xml
79+
6380
- name: Test
6481
run: |
6582
pip install .

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# CGAT-core
2+
3+
[![codecov](https://codecov.io/gh/cgat-developers/cgat-core/branch/main/graph/badge.svg)](https://codecov.io/gh/cgat-developers/cgat-core)
14

25
![CGAT-core](https://github.com/cgat-developers/cgat-core/blob/master/docs/img/CGAT_logo.png)
36
----------------------------------------
@@ -24,4 +27,3 @@ Installation
2427
The following sections describe how to install the [cgatcore](https://cgat-developers.github.io/cgat-core/) framework.
2528

2629
The preferred method to install the cgatcore is using conda, by following the instructions on [read the docs](https://cgat-core.readthedocs.io/en/latest/getting_started/Installation.html). However, there are a few other methods to install cgatcore, including pip and our own bash script installer.
27-

0 commit comments

Comments
 (0)