Skip to content

Commit ae204f2

Browse files
feat: upload code coverage report (#61)
Co-authored-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
1 parent a9d9705 commit ae204f2

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

.github/workflows/tests.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,3 +77,12 @@ jobs:
7777
- name: Test with pytest
7878
run: |
7979
make pytest
80+
81+
- name: Upload coverage to Codecov
82+
uses: codecov/codecov-action@v1
83+
with:
84+
token: ${{ secrets.CODECOV }}
85+
file: ./tests/coverage.xml
86+
flags: unittests
87+
name: codecov-umbrella
88+
fail_ci_if_error: false

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,9 @@ addlicense-install: go-install
8282
# Tests
8383

8484
pytest: pytest-install
85-
cd tests && $(PYTHON) -m pytest unit --cov $(PROJECT_PATH) --durations 0 -v --cov-report term-missing --color=yes
85+
cd tests && \
86+
$(PYTHON) -m pytest unit --verbose --color=yes --durations=0 \
87+
--cov="$(PROJECT_PATH)" --cov-report=xml --cov-report=term-missing
8688

8789
test: pytest
8890

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy