Skip to content

Commit 38e5c71

Browse files
authored
Update release.yml
1 parent 11865f2 commit 38e5c71

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/release.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,15 +52,15 @@ jobs:
5252
--logger "trx;LogFileName=${{ github.workspace }}/artifacts/test-results/smoke.trx"
5353
${{ env.version_suffix_args }}
5454

55-
# - name: Run Live Tests
56-
# run: dotnet test ./tests/OpenAI.Tests.csproj
57-
# --configuration Release
58-
# --filter="TestCategory!=Smoke&TestCategory!=Assistants&TestCategory!=Images&TestCategory!=Uploads&TestCategory!=Moderations&TestCategory!=FineTuning&TestCategory!=Conversation&TestCategory!=Manual"
59-
# --logger "trx;LogFilePrefix=live"
60-
# --results-directory ${{ github.workspace }}/artifacts/test-results
61-
# ${{ env.version_suffix_args }}
62-
# env:
63-
# OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
55+
- name: Run Live Tests
56+
run: dotnet test ./tests/OpenAI.Tests.csproj
57+
--configuration Release
58+
--filter="TestCategory!=Smoke&TestCategory!=Assistants&TestCategory!=Images&TestCategory!=Uploads&TestCategory!=Moderations&TestCategory!=FineTuning&TestCategory!=Conversation&TestCategory!=Manual"
59+
--logger "trx;LogFilePrefix=live"
60+
--results-directory ${{ github.workspace }}/artifacts/test-results
61+
${{ env.version_suffix_args }}
62+
env:
63+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
6464

6565
- name: Upload artifact
6666
uses: actions/upload-artifact@v4
@@ -166,10 +166,10 @@ jobs:
166166
--api-key ${{ secrets.GITHUB_TOKEN }}
167167
--skip-duplicate
168168

169-
# - name: Publish package to nuget.org
170-
# if: github.event_name == 'release'
171-
# run: dotnet nuget push
172-
# ${{ github.workspace }}/build-artifacts/packages/*.nupkg
173-
# --source https://api.nuget.org/v3/index.json
174-
# --api-key ${{ secrets.NUGET_API_KEY }}
175-
# --skip-duplicate
169+
- name: Publish package to nuget.org
170+
if: github.event_name == 'release'
171+
run: dotnet nuget push
172+
${{ github.workspace }}/build-artifacts/packages/*.nupkg
173+
--source https://api.nuget.org/v3/index.json
174+
--api-key ${{ secrets.NUGET_API_KEY }}
175+
--skip-duplicate

0 commit comments

Comments
 (0)