Skip to content

Commit 80108ea

Browse files
committed
Switch to codecov-cli
1 parent c086df6 commit 80108ea

File tree

5 files changed

+9
-33
lines changed

5 files changed

+9
-33
lines changed

Diff for: .github/workflows/dotnet-core.yml

+4
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ jobs:
1616

1717
steps:
1818
- uses: actions/checkout@v4
19+
with:
20+
fetch-depth: 0
1921
- name: Install libpcap
2022
run: sudo -E bash scripts/install-libpcap.sh
2123
- name: Install tap
@@ -24,6 +26,8 @@ jobs:
2426
run: dotnet build SharpPcap/SharpPcap.csproj
2527
- name: Test
2628
run: sudo -E bash scripts/test.sh
29+
env:
30+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
2731

2832
- run: sudo chmod -R +r Test/TestResults
2933
if: always()

Diff for: Test/SendQueueTest.cs

+2
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ public void TestManagedTransmitNormal()
161161
}
162162

163163
// This test gets affected by host performance, so retry it up to 3 times
164+
// Disable this test for now, too flaky
165+
[Explicit]
164166
[Retry(3)]
165167
[Test]
166168
public void TestManagedTransmitSync()

Diff for: Test/Tunneling/TunnelDeviceTest.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public void TestArpTunnel()
7878
/// Test injection of packets from and to OS
7979
/// </summary>
8080
[Test]
81-
[Retry(3)]
81+
[Retry(5)]
8282
public void TestUdpTunnel()
8383
{
8484
var nic = TunnelDevice.GetTunnelInterfaces().First();

Diff for: scripts/codecov.sh

-30
This file was deleted.

Diff for: scripts/test.sh

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,5 +25,5 @@ fi
2525
dotnet test "${TEST_ARGS[@]}"
2626

2727
# coverage
28-
29-
bash $(dirname $0)/codecov.sh -f '**/*.opencover.xml'
28+
pip install codecov-cli || python3 -m pip install codecov-cli
29+
codecovcli upload-process

0 commit comments

Comments
 (0)