Skip to content

Commit

Permalink
Have added Coverage tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Acribbs committed Jan 1, 2025
1 parent 0c52a7b commit 1764d16
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 1 deletion.
11 changes: 11 additions & 0 deletions .codecov.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
codecov:
notify:
require_ci_to_pass: yes

coverage:
precision: 2
round: down
paths:
- ./cgatcore/**
ignore:
- tests/**
17 changes: 17 additions & 0 deletions .github/workflows/cgatcore_python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,23 @@ jobs:
pip list
openssl version
- name: Install coverage
run: |
pip install coverage
- name: Run tests with coverage
run: |
coverage run -m pytest
- name: Generate coverage report
run: |
coverage report
coverage xml
- name: Upload coverage to CodeCov
run: |
bash <(curl -s https://codecov.io/bash) -f coverage.xml
- name: Test
run: |
pip install .
Expand Down
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# CGAT-core

[![codecov](https://codecov.io/gh/cgat-developers/cgat-core/branch/main/graph/badge.svg)](https://codecov.io/gh/cgat-developers/cgat-core)

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

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.

0 comments on commit 1764d16

Please sign in to comment.