Skip to content

Commit 9ced0fa

Browse files
authored
Stabilize CI test selection (#370)
1 parent 09c0ede commit 9ced0fa

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

.github/workflows/pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
run: dotnet list package --vulnerable --include-transitive
3939

4040
- name: Test
41-
run: dotnet test --no-build --verbosity normal --configuration Release --collect:"XPlat Code Coverage" --logger "trx;LogFileName=test-results.trx"
41+
run: dotnet test --no-build --verbosity normal --configuration Release --filter "Category!=Performance" --collect:"XPlat Code Coverage" --logger "trx;LogFileName=test-results.trx"
4242

4343
- name: Upload coverage to Codecov
4444
if: matrix.os == 'windows-latest'

.github/workflows/push.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ jobs:
8686
- name: Build
8787
run: dotnet build --no-restore -c Release
8888
- name: Test
89-
run: dotnet test --no-build -c Release --verbosity normal
89+
run: dotnet test --no-build -c Release --verbosity normal --filter "Category!=Performance"
9090

9191
build-telegram-bot-api:
9292
needs: prepare

TelegramSearchBot.Test/Service/Vector/VectorPerformanceTests.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ namespace TelegramSearchBot.Test.Service.Vector {
2222
/// <summary>
2323
/// 向量服务性能测试
2424
/// </summary>
25+
[Trait("Category", "Performance")]
2526
public class VectorPerformanceTests : IDisposable {
2627
private readonly Mock<ILogger<FaissVectorService>> _mockLogger;
2728
private readonly Mock<IGeneralLLMService> _mockLLMService;

0 commit comments

Comments
 (0)