File tree Expand file tree Collapse file tree 7 files changed +21
-11
lines changed Expand file tree Collapse file tree 7 files changed +21
-11
lines changed Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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 and Pack
43+ - name : Build and pack
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 : Run Live Tests
58+ - name : Run recorded 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 : Publish Package
124+ name : Publish package
122125 needs : sign
123126 runs-on : ubuntu-latest
124127 steps :
Original file line number Diff line number Diff line change 1111
1212namespace OpenAI . Tests . Chat ;
1313
14- [ Category ( "StoredChat" ) ]
14+ [ Category ( "Chat" ) ]
15+ [ Category ( "ChatStore" ) ]
1516public class ChatStoreTests : OpenAIRecordedTestBase
1617{
1718 public ChatStoreTests ( bool isAsync ) : base ( isAsync )
Original file line number Diff line number Diff line change @@ -786,6 +786,7 @@ public async Task WebSearchWorks()
786786 }
787787
788788 [ RecordedTest ]
789+ [ Category ( "MPFD" ) ]
789790 public async Task FileIdContentWorks ( )
790791 {
791792 OpenAIFileClient fileClient = GetProxiedOpenAIClient < OpenAIFileClient > ( TestScenario . Files ) ;
Original file line number Diff line number Diff line change 1414namespace OpenAI . Tests . Chat ;
1515
1616[ Category ( "Chat" ) ]
17+ [ Category ( "ChatTools" ) ]
1718public class ChatToolTests : OpenAIRecordedTestBase
1819{
1920 public enum SchemaPresence { WithSchema , WithoutSchema }
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ namespace OpenAI.Tests.Responses;
1313#pragma warning disable OPENAICUA001
1414
1515[ Category ( "Responses" ) ]
16+ [ Category ( "ResponsesStore" ) ]
1617public partial class ResponseStoreTests : OpenAIRecordedTestBase
1718{
1819 public ResponseStoreTests ( bool isAsync ) : base ( isAsync )
Original file line number Diff line number Diff line change 1818namespace OpenAI . Tests . Responses ;
1919
2020[ Category ( "Responses" ) ]
21- [ Category ( "MCP " ) ]
21+ [ Category ( "ResponsesTools " ) ]
2222public partial class ResponsesToolTests : OpenAIRecordedTestBase
2323{
2424 public ResponsesToolTests ( bool isAsync ) : base ( isAsync )
You can’t perform that action at this time.
0 commit comments