Skip to content

Commit 0a7ec09

Browse files
fix: add basic codecov.yml (#1812)
* fix: add basic codecov.yml Basic config makes the project/patch status check informational only for now. * fix: output junit.xml report and upload to codecov * chore: retry failing test 2 times. This should help with the windows and macos flaky tests
1 parent b383964 commit 0a7ec09

File tree

3 files changed

+19
-1
lines changed

3 files changed

+19
-1
lines changed

.codecov.yml

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
coverage:
3+
status:
4+
project:
5+
default:
6+
informational: true
7+
patch:
8+
default:
9+
informational: true

.config/nextest.toml

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,11 @@
11
# By default, retry a few times until pass the test within the specified timeout
22
[profile.default]
3-
retries = 1
3+
retries = 2
44
slow-timeout = { period = "60s", terminate-after = 2 }
55

6+
[profile.default.junit]
7+
path = "junit.xml"
8+
69
# Run the following tests exclusively with longer timeout
710
[[profile.default.overrides]]
811
filter = """

.github/workflows/ci.yml

+6
Original file line numberDiff line numberDiff line change
@@ -179,6 +179,12 @@ jobs:
179179
if: ${{ matrix.os == 'ubuntu-latest' }}
180180
run: cargo nextest run -p zenohd --no-default-features
181181

182+
- name: Upload test results to Codecov
183+
if: ${{ !cancelled() }}
184+
uses: codecov/test-results-action@v1
185+
with:
186+
token: ${{ secrets.CODECOV_TOKEN }}
187+
182188
valgrind:
183189
name: Memory leak checks
184190
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)