Skip to content

Commit

Permalink
Merge pull request #64 from jodendaal/RemoveTextEdit-Deprecated
Browse files Browse the repository at this point in the history
Remove text edit deprecated
  • Loading branch information
jodendaal committed Mar 25, 2023
2 parents 0492b6e + b6555cb commit 6f7339a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/dotnet-desktop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,15 +113,19 @@ jobs:
run: dotnet build src/OpenAI.Net.sln --configuration Release

- name: Publish NuGet
if: github.ref == 'refs/heads/main'
run: dotnet nuget push src/OpenAI.Net/bin/Release/**\*.nupkg --skip-duplicate --api-key ${{ secrets.NUGET_APIKEY }} --source https://api.nuget.org/v3/index.json

- name: Add GitHub Packages Source
if: github.ref == 'refs/heads/main'
run: dotnet nuget add source --username jodendaal --password ${{ secrets.GITHUB_TOKEN }} --store-password-in-clear-text --name github "https://nuget.pkg.github.com/jodendaal/index.json"

- name: Publish NuGet to GitHub Packages
if: github.ref == 'refs/heads/main'
run: dotnet nuget push src/OpenAI.Net/bin/Release/**\*.nupkg --skip-duplicate --api-key ${{ secrets.GITHUB_TOKEN }} --source "github"

- name: Create Test Coverage Badge
if: github.ref == 'refs/heads/main'
uses: simon-k/dotnet-code-coverage-badge@v1.0.0
id: create_coverage_badge
with:
Expand All @@ -133,9 +137,11 @@ jobs:
gist-auth-token: ${{ secrets.GIST_AUTH_TOKEN }}

- name: Print code coverage
if: github.ref == 'refs/heads/main'
run: echo "Code coverage percentage ${{steps.create_coverage_badge.outputs.percentage}}%"

- name: Print badge data
if: github.ref == 'refs/heads/main'
run: echo "Badge data ${{steps.test_step.outputs.badge}}"

# Upload the MSIX package: https://github.com/marketplace/actions/upload-a-build-artifact
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ public async Task GetStream()
await foreach(var response in OpenAIService.Chat.GetStream(request))
{
Assert.True(response?.IsSuccess, "Failed to get chat stream", response?.ErrorMessage);
Assert.That(!string.IsNullOrWhiteSpace(response?.Result?.Choices[0].Delta?.Content), Is.True);
}
}

Expand All @@ -32,7 +31,6 @@ public async Task GetStreamWithListExtension()
await foreach (var response in OpenAIService.Chat.GetStream(messages))
{
Assert.True(response?.IsSuccess, "Failed to get chat stream", response?.ErrorMessage);
Assert.That(!string.IsNullOrWhiteSpace(response?.Result?.Choices[0].Delta?.Content),Is.True);
}
}
}
Expand Down

0 comments on commit 6f7339a

Please sign in to comment.