Skip to content

Commit a903594

Browse files
committed
ci: add Codecov coverage tracking
1 parent 4de492c commit a903594

2 files changed

Lines changed: 12 additions & 2 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,16 @@ jobs:
3030
python-version: ${{ matrix.python-version }}
3131

3232
- name: Install package and test dependencies
33-
run: pip install ".[test]"
33+
run: pip install ".[test]" pytest-cov
3434

3535
- name: Run tests
36-
run: pytest -v --tb=short
36+
run: pytest -v --tb=short --cov=rehline --cov-report=xml --cov-report=term
37+
38+
- name: Upload coverage to Codecov
39+
if: success()
40+
uses: codecov/codecov-action@v4
41+
with:
42+
token: ${{ secrets.CODECOV_TOKEN }}
43+
file: ./coverage.xml
44+
flags: unittests
45+
name: codecov-umbrella

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
[![Documentation](https://img.shields.io/badge/docs-latest-blue.svg)](https://rehline-python.readthedocs.io)
66
[![Paper](https://img.shields.io/badge/NeurIPS-2023-red.svg)](https://openreview.net/pdf?id=3pEBW2UPAD)
77
[![Downloads](https://pepy.tech/badge/rehline)](https://pepy.tech/project/rehline)
8+
[![Codecov](https://codecov.io/gh/softmin/ReHLine-python/branch/main/graph/badge.svg)](https://codecov.io/gh/softmin/ReHLine-python)
89

910
> **Fast, scalable, and scikit-learn compatible optimization for machine learning**
1011

0 commit comments

Comments
 (0)