Skip to content

Commit b0d303a

Browse files
committed
test again
1 parent bcd366f commit b0d303a

File tree

2 files changed

+9
-16
lines changed

2 files changed

+9
-16
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,9 @@ jobs:
6161
- name: Test
6262
shell: bash
6363
run: |
64-
# if [[ "${{ runner.os }}" != "Windows" ]]; then
65-
# dotnet test ./tests/Sdcb.PaddleOCR.Tests/Sdcb.PaddleOCR.Tests.csproj -c Release --no-build --verbosity normal --filter 'Category!=WindowsOnly'
66-
# else
67-
# dotnet test ./tests/Sdcb.PaddleOCR.Tests/Sdcb.PaddleOCR.Tests.csproj -c Release --no-build --verbosity normal
68-
# fi
69-
dotnet test ./tests/Sdcb.PaddleOCR.Tests/Sdcb.PaddleOCR.Tests.csproj -c Release --no-build --verbosity normal --filter 'FullyQualifiedName=Sdcb.PaddleOCR.Tests.OfflineModelsTest'
64+
if [[ "${{ runner.os }}" != "Windows" ]]; then
65+
dotnet test ./tests/Sdcb.PaddleOCR.Tests/Sdcb.PaddleOCR.Tests.csproj -c Release --no-build --verbosity normal --filter 'Category!=WindowsOnly'
66+
else
67+
dotnet test ./tests/Sdcb.PaddleOCR.Tests/Sdcb.PaddleOCR.Tests.csproj -c Release --no-build --verbosity normal
68+
fi
69+
# dotnet test ./tests/Sdcb.PaddleOCR.Tests/Sdcb.PaddleOCR.Tests.csproj -c Release --no-build --verbosity normal --filter 'FullyQualifiedName=Sdcb.PaddleOCR.Tests.OfflineModelsTest'

tests/Sdcb.PaddleOCR.Tests/DownloadCheck.cs

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,10 @@
44

55
namespace Sdcb.PaddleOCR.Tests;
66

7-
public class DownloadCheckTest
7+
#pragma warning disable CS9113 // 参数未读。
8+
public class DownloadCheckTest(ITestOutputHelper console)
9+
#pragma warning restore CS9113 // 参数未读。
810
{
9-
#pragma warning disable IDE0052 // 删除未读的私有成员
10-
private readonly ITestOutputHelper _console;
11-
#pragma warning restore IDE0052 // 删除未读的私有成员
12-
13-
public DownloadCheckTest(ITestOutputHelper console)
14-
{
15-
_console = console;
16-
}
17-
1811
[Fact]
1912
public async Task DownloadCheck()
2013
{

0 commit comments

Comments
 (0)