Skip to content

Commit

Permalink
Switch to codecov-cli
Browse files Browse the repository at this point in the history
  • Loading branch information
kayoub5 committed Oct 3, 2024
1 parent c086df6 commit 80108ea
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 33 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/dotnet-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:

steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install libpcap
run: sudo -E bash scripts/install-libpcap.sh
- name: Install tap
Expand All @@ -24,6 +26,8 @@ jobs:
run: dotnet build SharpPcap/SharpPcap.csproj
- name: Test
run: sudo -E bash scripts/test.sh
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

- run: sudo chmod -R +r Test/TestResults
if: always()
Expand Down
2 changes: 2 additions & 0 deletions Test/SendQueueTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ public void TestManagedTransmitNormal()
}

// This test gets affected by host performance, so retry it up to 3 times
// Disable this test for now, too flaky
[Explicit]
[Retry(3)]
[Test]
public void TestManagedTransmitSync()
Expand Down
2 changes: 1 addition & 1 deletion Test/Tunneling/TunnelDeviceTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ public void TestArpTunnel()
/// Test injection of packets from and to OS
/// </summary>
[Test]
[Retry(3)]
[Retry(5)]
public void TestUdpTunnel()
{
var nic = TunnelDevice.GetTunnelInterfaces().First();
Expand Down
30 changes: 0 additions & 30 deletions scripts/codecov.sh

This file was deleted.

4 changes: 2 additions & 2 deletions scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,5 +25,5 @@ fi
dotnet test "${TEST_ARGS[@]}"

# coverage

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

0 comments on commit 80108ea

Please sign in to comment.