Skip to content

Commit 2ec69a6

Browse files
authored
Disable live test and nuget publish for testing only
1 parent 947cf09 commit 2ec69a6

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
@@ -164,10 +164,10 @@ jobs:
164164
--api-key ${{ secrets.GITHUB_TOKEN }}
165165
--skip-duplicate
166166

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

0 commit comments

Comments
 (0)