Skip to content

Commit 9145fd7

Browse files
authored
enable codecov (#17)
* enable codecov * add .codecov.yml
1 parent 833f4da commit 9145fd7

File tree

3 files changed

+27
-16
lines changed

3 files changed

+27
-16
lines changed

.codecov.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
codecov:
2+
require_ci_to_pass: yes
3+
4+
coverage:
5+
status:
6+
project:
7+
default:
8+
# Require 1% coverage, i.e., always succeed
9+
target: 1
10+
patch: false
11+
changes: false

.github/workflows/ci-additional.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@ jobs:
6262
--cov-report=xml
6363
$PYTEST_EXTRA_FLAGS
6464

65-
# - name: Upload code coverage to Codecov
66-
# uses: codecov/codecov-action@v3
67-
# with:
68-
# file: ./coverage.xml
69-
# flags: unittests,${{ matrix.env }}
70-
# env_vars: RUNNER_OS
71-
# name: codecov-umbrella
72-
# fail_ci_if_error: false
65+
- name: Upload code coverage to Codecov
66+
uses: codecov/codecov-action@v3
67+
with:
68+
file: ./coverage.xml
69+
flags: unittests,${{ matrix.env }}
70+
env_vars: RUNNER_OS
71+
name: codecov-umbrella
72+
fail_ci_if_error: false
7373

7474
min-version-policy:
7575
name: Minimum Version Policy

.github/workflows/ci.yaml

+8-8
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ jobs:
5858
--cov-report=xml
5959
--junitxml=test-results/${{ runner.os }}-${{ matrix.python-version }}.xml
6060

61-
# - name: Upload code coverage to Codecov
62-
# uses: codecov/codecov-action@v3
63-
# with:
64-
# file: ./coverage.xml
65-
# flags: unittests
66-
# env_vars: RUNNER_OS,PYTHON_VERSION
67-
# name: codecov-umbrella
68-
# fail_ci_if_error: false
61+
- name: Upload code coverage to Codecov
62+
uses: codecov/codecov-action@v3
63+
with:
64+
file: ./coverage.xml
65+
flags: unittests
66+
env_vars: RUNNER_OS,PYTHON_VERSION
67+
name: codecov-umbrella
68+
fail_ci_if_error: false

0 commit comments

Comments
 (0)