Skip to content

Commit 0b78226

Browse files
committed
Add Embeddings and Responses, exclude MPFD
1 parent 8a77a84 commit 0b78226

File tree

7 files changed

+13
-9
lines changed

7 files changed

+13
-9
lines changed

.github/workflows/live-test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ jobs:
3232
- name: Restore tools
3333
run: dotnet tool restore --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
3434

35-
- name: Run live tests
35+
- name: Run recorded tests
3636
run: dotnet test ./tests/OpenAI.Tests.csproj
3737
--configuration Release
38-
--filter="TestCategory=Chat"
38+
--filter="(TestCategory=Chat|TestCategory=Embeddings|TestCategory=Responses)&TestCategory!=MPFD"
3939
--logger "trx;LogFilePrefix=live"
4040
--results-directory ${{github.workspace}}/artifacts/test-results
4141
${{ env.version_suffix_args}}

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,25 +40,25 @@ jobs:
4040
run: dotnet tool restore --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
4141

4242
# Pack the client NuGet package and include URL back to the repository and release tag
43-
- name: Build and Pack
43+
- name: Build and pack
4444
run: dotnet pack
4545
--configuration Release
4646
--output "${{ github.workspace }}/artifacts/packages"
4747
/p:PackageProjectUrl="${{ github.server_url }}/${{ github.repository }}/tree/${{ github.event.release.tag_name }}"
4848
/p:PackageReleaseNotes="${{ github.server_url }}/${{ github.repository }}/blob/${{ github.event.release.tag_name }}/CHANGELOG.md"
4949
${{ env.version_suffix_args }}
5050

51-
- name: Unit Test
51+
- name: Run unit tests
5252
run: dotnet test
5353
--configuration Release
5454
--filter="TestCategory=Smoke&TestCategory!=Manual"
5555
--logger "trx;LogFileName=${{ github.workspace }}/artifacts/test-results/smoke.trx"
5656
${{ env.version_suffix_args }}
5757

58-
- name: Run Live Tests
58+
- name: Run recorded tests
5959
run: dotnet test ./tests/OpenAI.Tests.csproj
6060
--configuration Release
61-
--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"
6262
--logger "trx;LogFilePrefix=live"
6363
--results-directory ${{ github.workspace }}/artifacts/test-results
6464
${{ env.version_suffix_args }}
@@ -121,7 +121,7 @@ jobs:
121121
path: ${{ github.workspace }}/build-artifacts
122122

123123
deploy:
124-
name: Publish Package
124+
name: Publish package
125125
needs: sign
126126
runs-on: ubuntu-latest
127127
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
namespace OpenAI.Tests.Chat;
1313

14-
[Category("StoredChat")]
14+
[Category("Chat")]
15+
[Category("ChatStore")]
1516
public class ChatStoreTests : OpenAIRecordedTestBase
1617
{
1718
public ChatStoreTests(bool isAsync) : 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
public async Task FileIdContentWorks()
790791
{
791792
OpenAIFileClient fileClient = 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
namespace OpenAI.Tests.Chat;
1515

1616
[Category("Chat")]
17+
[Category("ChatTools")]
1718
public class ChatToolTests : OpenAIRecordedTestBase
1819
{
1920
public enum SchemaPresence { 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 disable OPENAICUA001
1414

1515
[Category("Responses")]
16+
[Category("ResponsesStore")]
1617
public partial class ResponseStoreTests : OpenAIRecordedTestBase
1718
{
1819
public ResponseStoreTests(bool isAsync) : 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
namespace OpenAI.Tests.Responses;
1919

2020
[Category("Responses")]
21-
[Category("MCP")]
21+
[Category("ResponsesTools")]
2222
public partial class ResponsesToolTests : OpenAIRecordedTestBase
2323
{
2424
public ResponsesToolTests(bool isAsync) : base(isAsync)

0 commit comments

Comments
 (0)