mirror of
https://github.com/bec-project/bec_widgets.git
synced 2025-07-13 19:21:50 +02:00
ci: add coverage report
This commit is contained in:
10
.github/workflows/pytest.yml
vendored
10
.github/workflows/pytest.yml
vendored
@ -44,4 +44,12 @@ jobs:
|
||||
pip install coverage pytest pytest-random-order
|
||||
coverage run --source=./bec_widgets -m pytest -v --junitxml=report.xml --maxfail=2 --random-order --full-trace ./tests/unit_tests
|
||||
coverage report
|
||||
coverage xml
|
||||
coverage xml
|
||||
- name: Upload to Codecov
|
||||
uses: codecov/codecov-action@v3
|
||||
with:
|
||||
file: coverage.xml
|
||||
flags: unit-tests
|
||||
name: codecov-$(date +%Y-%m-%d)
|
||||
fail_ci_if_error: true
|
||||
verbose: true
|
Reference in New Issue
Block a user