Skip to content

Commit 5414fe4

Browse files
committed
CI: Update configuration for code coverage uploading to Codecov.io
- Use `cpython` flag - Fail CI when upload fails - Add Codecov.io badge to README
1 parent 3146eb3 commit 5414fe4

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ jobs:
7070
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
7171
with:
7272
files: ./coverage.xml
73-
flags: main
73+
flags: cpython
7474
env_vars: OS,PYTHON
7575
name: codecov-umbrella
76-
fail_ci_if_error: false
76+
fail_ci_if_error: true
7777

7878

7979
test-micropython:

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# micropython-cratedb - A CrateDB Driver for MicroPython
22

33
[![Tests](https://github.com/crate/micropython-cratedb/actions/workflows/tests.yml/badge.svg)](https://github.com/crate/micropython-cratedb/actions/workflows/tests.yml)
4+
[![Test coverage](https://img.shields.io/codecov/c/gh/crate/micropython-cratedb.svg?style=flat-square)](https://codecov.io/gh/crate/micropython-cratedb/)
45

56
## Introduction
67

0 commit comments

Comments
 (0)