Skip to content
This repository was archived by the owner on Feb 26, 2025. It is now read-only.

Commit f6594f3

Browse files
authored
Merge pull request #364 from BlueBrain/coverage
Add coverage checking on codecov
2 parents 9616462 + b713211 commit f6594f3

File tree

6 files changed

+11
-40
lines changed

6 files changed

+11
-40
lines changed

.codeclimate.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

.coveragerc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[run]
2+
omit = */tests/*

.github/workflows/main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,11 @@ jobs:
3030
pip install tox tox-gh-actions
3131
- name: Run tox
3232
run: tox
33+
- name: "Upload coverage to Codecov"
34+
uses: codecov/codecov-action@v1
35+
with:
36+
token: ${{ secrets.CODECOV_TOKEN }}
37+
fail_ci_if_error: false
3338

3439
build-n-publish:
3540
if: github.ref == 'refs/heads/master' && github.event_name == 'push'

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ clean:
6767
rm -rf examples/l5pc/L5PC.py
6868
rm -rf examples/l5pc/x86_64
6969
rm -rf examples/stochkv/x86_64
70-
rm -rf .coverage
70+
rm -rf .coverage*
7171
find . -name "*.pyc" -exec rm -rf {} \;
7272
l5pc_start: install
7373
cd examples/l5pc && \

PITCHME.md

Lines changed: 0 additions & 19 deletions
This file was deleted.

tox.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ deps =
2121
neuron-nightly
2222
sh
2323
pathlib
24-
pytest
24+
pytest-cov
2525
download = true
2626
whitelist_externals =
2727
make
@@ -36,8 +36,8 @@ commands =
3636
style: pycodestyle --ignore=E402,W503,W504 bluepyopt
3737
syntax: flake8 . --count --select=E9,F63,F72,F82 --show-source --statistics
3838

39-
unit: pytest bluepyopt/tests -k unit
40-
functional: pytest bluepyopt/tests -k-unit
39+
unit: pytest --cov=bluepyopt --cov-append --cov-report=xml bluepyopt/tests -k unit
40+
functional: pytest --cov=bluepyopt --cov-append --cov-report=xml bluepyopt/tests -k-unit
4141

4242
[testenv:docs]
4343
basepython = python3.6

0 commit comments

Comments
 (0)