Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit90943c6

Browse files
authored
Restore tools in pipeline and temporarily filter out MPFD tests (#800)
* Run `dotnet tool restore` to restore the test-proxy.* Temporarily filter out MPFD tests which are having trouble running in the pipeline.
1 parente77f003 commit90943c6

File tree

7 files changed

+21
-11
lines changed

7 files changed

+21
-11
lines changed

‎.github/workflows/live-test.yml‎

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,13 +29,16 @@ jobs:
2929
-name:Checkout code
3030
uses:actions/checkout@v2
3131

32-
-name:Run live tests
32+
-name:Restore tools
33+
run:dotnet tool restore --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
34+
35+
-name:Run recorded tests
3336
run:dotnet test ./tests/OpenAI.Tests.csproj
3437
--configuration Release
35-
--filter="TestCategory!=Smoke&TestCategory!=Assistants&TestCategory!=StoredChat&TestCategory!=Images&TestCategory!=Uploads&TestCategory!=Moderations&TestCategory!=FineTuning&TestCategory!=Containers&TestCategory!=Conversation&TestCategory!=MCP&TestCategory!=Manual"
38+
--filter="(TestCategory=Chat|TestCategory=Embeddings|TestCategory=Responses)&TestCategory!=MPFD"
3639
--logger "trx;LogFilePrefix=live"
37-
--results-directory ${{github.workspace}}/artifacts/test-results
38-
${{ env.version_suffix_args}}
40+
--results-directory ${{github.workspace}}/artifacts/test-results
41+
${{ env.version_suffix_args}}
3942
env:
4043
OPENAI_API_KEY:${{ secrets.OPENAI_API_KEY }}
4144

‎.github/workflows/release.yml‎

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,26 +36,29 @@ jobs:
3636
-name:Checkout code
3737
uses:actions/checkout@v2
3838

39+
-name:Restore tools
40+
run:dotnet tool restore --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
41+
3942
# Pack the client NuGet package and include URL back to the repository and release tag
40-
-name:Build andPack
43+
-name:Build andpack
4144
run:dotnet pack
4245
--configuration Release
4346
--output "${{ github.workspace }}/artifacts/packages"
4447
/p:PackageProjectUrl="${{ github.server_url }}/${{ github.repository }}/tree/${{ github.event.release.tag_name }}"
4548
/p:PackageReleaseNotes="${{ github.server_url }}/${{ github.repository }}/blob/${{ github.event.release.tag_name }}/CHANGELOG.md"
4649
${{ env.version_suffix_args }}
4750

48-
-name:Unit Test
51+
-name:Run unit tests
4952
run:dotnet test
5053
--configuration Release
5154
--filter="TestCategory=Smoke&TestCategory!=Manual"
5255
--logger "trx;LogFileName=${{ github.workspace }}/artifacts/test-results/smoke.trx"
5356
${{ env.version_suffix_args }}
5457

55-
-name:RunLive Tests
58+
-name:Runrecorded tests
5659
run:dotnet test ./tests/OpenAI.Tests.csproj
5760
--configuration Release
58-
--filter="TestCategory!=Smoke&TestCategory!=Assistants&TestCategory!=StoredChat&TestCategory!=Images&TestCategory!=Uploads&TestCategory!=Moderations&TestCategory!=FineTuning&TestCategory!=Containers&TestCategory!=Conversation&TestCategory!=MCP&TestCategory!=Manual"
61+
--filter="(TestCategory=Chat|TestCategory=Embeddings|TestCategory=Responses)&TestCategory!=MPFD"
5962
--logger "trx;LogFilePrefix=live"
6063
--results-directory ${{ github.workspace }}/artifacts/test-results
6164
${{ env.version_suffix_args }}
@@ -118,7 +121,7 @@ jobs:
118121
path:${{ github.workspace }}/build-artifacts
119122

120123
deploy:
121-
name:PublishPackage
124+
name:Publishpackage
122125
needs:sign
123126
runs-on:ubuntu-latest
124127
steps:

‎tests/Chat/ChatStoreTests.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111

1212
namespaceOpenAI.Tests.Chat;
1313

14-
[Category("StoredChat")]
14+
[Category("Chat")]
15+
[Category("ChatStore")]
1516
publicclassChatStoreTests:OpenAIRecordedTestBase
1617
{
1718
publicChatStoreTests(boolisAsync):base(isAsync)

‎tests/Chat/ChatTests.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -786,6 +786,7 @@ public async Task WebSearchWorks()
786786
}
787787

788788
[RecordedTest]
789+
[Category("MPFD")]
789790
publicasyncTaskFileIdContentWorks()
790791
{
791792
OpenAIFileClientfileClient=GetProxiedOpenAIClient<OpenAIFileClient>(TestScenario.Files);

‎tests/Chat/ChatToolTests.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
namespaceOpenAI.Tests.Chat;
1515

1616
[Category("Chat")]
17+
[Category("ChatTools")]
1718
publicclassChatToolTests:OpenAIRecordedTestBase
1819
{
1920
publicenumSchemaPresence{WithSchema,WithoutSchema}

‎tests/Responses/ResponseStoreTests.cs‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ namespace OpenAI.Tests.Responses;
1313
#pragma warning disableOPENAICUA001
1414

1515
[Category("Responses")]
16+
[Category("ResponsesStore")]
1617
publicpartialclassResponseStoreTests:OpenAIRecordedTestBase
1718
{
1819
publicResponseStoreTests(boolisAsync):base(isAsync)

‎tests/Responses/ResponsesToolTests.cs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
namespaceOpenAI.Tests.Responses;
1919

2020
[Category("Responses")]
21-
[Category("MCP")]
21+
[Category("ResponsesTools")]
2222
publicpartialclassResponsesToolTests:OpenAIRecordedTestBase
2323
{
2424
publicResponsesToolTests(boolisAsync):base(isAsync)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp