openai/openai-dotnet

Public

mirrored from https://github.com/openai/openai-dotnetAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
user/travisw/mcptoolfilter-serialization-draft

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/live-test.yml

56lines · modecode

1# This workflow is triggered by the user and runs live tests on the codebase.
2name: Live Test
3
4on:
5 workflow_dispatch:
6 pull_request:
7 types:
8 - labeled
9
10jobs:
11 test:
12 name: Live Test
13 runs-on: ubuntu-latest
14 if: github.event_name == 'workflow_dispatch' || contains(github.event.pull_request.labels.*.name, 'live test')
15 environment: Live Testing
16 env:
17 version_suffix_args: ${{ format('/p:VersionSuffix="alpha.{0}"', github.run_number) }}
18 steps:
19 - name: Setup .NET 10
20 uses: actions/setup-dotnet@v5
21 with:
22 dotnet-version: '10.x'
23
24 - name: Setup .NET 9
25 uses: actions/setup-dotnet@v5
26 with:
27 dotnet-version: '9.x'
28
29 - name: Setup .NET 8
30 uses: actions/setup-dotnet@v5
31 with:
32 dotnet-version: '8.x'
33
34 - name: Checkout code
35 uses: actions/checkout@v6
36
37 - name: Restore tools
38 run: dotnet tool restore --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json
39
40 - name: Run recorded tests
41 run: dotnet test ./tests/OpenAI.Tests.csproj
42 --configuration Release
43 --filter="(TestCategory=Chat|TestCategory=Embeddings|TestCategory=Responses)&TestCategory!=MPFD"
44 --logger "trx;LogFilePrefix=live"
45 --results-directory ${{ github.workspace }}/artifacts/test-results
46 ${{ env.version_suffix_args }}
47 env:
48 CLIENTMODEL_TEST_MODE: Playback
49 CLIENTMODEL_DISABLE_AUTO_RECORDING: true
50
51 - name: Upload artifact
52 uses: actions/upload-artifact@v6
53 if: ${{ !cancelled() }}
54 with:
55 name: test-artifacts
56 path: ${{github.workspace}}/artifacts
57