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

Commit d0538d3

Browse files
committed
Add coverage checking on codecov
1 parent fcb0b4b commit d0538d3

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,10 @@ 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+
fail_ci_if_error: false
3337

3438
build-n-publish:
3539
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 && \

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 bluepyopt/tests -k unit
40+
functional: pytest --cov=bluepyopt --cov-append bluepyopt/tests -k-unit
4141

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

0 commit comments

Comments
 (0)