Skip to content

Commit cc2d208

Browse files
authored
Add codecov for code coverage (#5)
* Add codecov for code coverage
1 parent e30c0b2 commit cc2d208

File tree

2 files changed

+5
-31
lines changed

2 files changed

+5
-31
lines changed

.github/workflows/test.yml

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
activate-environment: testing
3131
- name: Install dependencies
3232
run: |
33-
conda install -c conda-forge python-graphblas networkx scipy pytest coverage black flake8 coveralls
33+
conda install -c conda-forge python-graphblas networkx scipy \
34+
pytest coverage black flake8 flake8-comprehensions flake8-bugbear
3435
pip install -e .
3536
- name: Style checks
3637
run: |
@@ -39,33 +40,6 @@ jobs:
3940
- name: PyTest
4041
run: |
4142
coverage run --branch -m pytest
43+
coverage xml
4244
- name: Coverage
43-
env:
44-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
COVERALLS_FLAG_NAME: ${{ matrix.python-version}}/${{ matrix.os }}
46-
COVERALLS_PARALLEL: true
47-
run: |
48-
coverage report --show-missing
49-
# coveralls --service=github # Broken :(
50-
51-
# finish:
52-
# needs: test
53-
# if: always()
54-
# runs-on: ubuntu-latest
55-
# defaults:
56-
# run:
57-
# shell: bash -l {0}
58-
# steps:
59-
# - name: Create env
60-
# uses: conda-incubator/setup-miniconda@v2
61-
# with:
62-
# auto-update-conda: true
63-
# python-version: "3.10"
64-
# activate-environment: finishing
65-
# - name: Update env
66-
# run: conda install -c conda-forge coveralls
67-
# - name: Coveralls finished
68-
# env:
69-
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
70-
# run: |
71-
# coveralls --finish
45+
uses: codecov/codecov-action@v2

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
[![pypi](https://img.shields.io/pypi/v/graphblas-algorithms.svg)](https://pypi.python.org/pypi/graphblas-algorithms/)
44
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://github.com/python-graphblas/graphblas-algorithms/blob/main/LICENSE)
55
[![Tests](https://github.com/python-graphblas/graphblas-algorithms/workflows/Tests/badge.svg?branch=main)](https://github.com/python-graphblas/graphblas-algorithms/actions)
6-
<!--- [![Coverage](https://coveralls.io/repos/python-graphblas/graphblas-algorithms/badge.svg?branch=main)](https://coveralls.io/r/python-graphblas/graphblas-algorithms) --->
6+
[![Coverage](https://codecov.io/gh/python-graphblas/graphblas-algorithms/branch/main/graph/badge.svg)](https://codecov.io/gh/python-graphblas/graphblas-algorithms)
77
<!--- [![conda-forge](https://img.shields.io/conda/vn/conda-forge/graphblas-algorithms.svg)](https://anaconda.org/conda-forge/graphblas-algorithms) --->
88
<!--- [![Docs](https://readthedocs.org/projects/graphblas-algorithms/badge/?version=latest)](https://graphblas-algorithms.readthedocs.io/en/latest/) --->
99

0 commit comments

Comments
 (0)