Skip to content

Commit 14306a7

Browse files
authored
Merge pull request #83 from PerformanceEstimation/feature/codecov
Feature/codecov
2 parents 9476db6 + 466ce34 commit 14306a7

File tree

3 files changed

+11
-4
lines changed

3 files changed

+11
-4
lines changed

.github/workflows/tests.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ on:
1111
branches:
1212
- 'master'
1313
- 'develop'
14+
1415
create:
1516
branches:
1617
- 'master'
@@ -42,13 +43,15 @@ jobs:
4243
run: |
4344
python -m pip install --upgrade pip
4445
pip install -r requirements.txt
45-
pip install pytest "pytest-cov<2.6" codecov
46+
pip install coverage
4647
- name: Install PEPit
4748
run: |
4849
pip install -e .
49-
- name: Run tests
50+
- name: Run tests and generate report
5051
run: |
51-
python -m unittest tests/test_*
52+
coverage run -m unittest tests/test_*
53+
- name: Upload Coverage to Codecov
54+
uses: codecov/codecov-action@v3
5255

5356
# pep8:
5457
# runs-on: ubuntu-latest

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# PEPit: Performance Estimation in Python
22

3-
[![PyPI version](https://badge.fury.io/py/PEPit.svg)](https://pypi.python.org/pypi/PEPit/)
3+
[![Build Status](https://github.com/PerformanceEstimation/PEPit/actions/workflows/tests.yaml/badge.svg?branch=master&event=push)](https://github.com/PerformanceEstimation/PEPit/actions)
4+
[![Codecov Status](https://codecov.io/gh/PerformanceEstimation/PEPit/branch/master/graph/badge.svg?token=NwT4oACGS4)](https://codecov.io/gh/PerformanceEstimation/PEPit)
45
[![Documentation Status](https://readthedocs.org/projects/pepit/badge/?version=latest)](https://pepit.readthedocs.io/en/latest/?badge=latest)
6+
[![PyPI version](https://badge.fury.io/py/PEPit.svg)](https://pypi.python.org/pypi/PEPit/)
57
[![Downloads](https://pepy.tech/badge/pepit)](https://pepy.tech/project/pepit)
68
[![License](https://img.shields.io/github/license/PerformanceEstimation/PEPit.svg)](https://github.com/PerformanceEstimation/PEPit/blob/master/LICENSE)
79

codecov.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
ignore:
2+
- "tests/test_*”

0 commit comments

Comments
 (0)