forked from Lakr233/LanguageModelChatUI
-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (52 loc) · 2.18 KB
/
Copy pathtests.yml
File metadata and controls
59 lines (52 loc) · 2.18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: Tests
on:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
unit-tests:
name: Unit Tests
runs-on: macos-15
steps:
- uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_16.2.app
- name: Build and run unit tests
run: |
xcodebuild test \
-scheme ChatClientKitTests \
-destination 'platform=iOS Simulator,name=iPhone 16,OS=latest' \
-skipPackagePluginValidation \
-only-testing:ChatClientKitTests/DeepSeekReasoningStrippingTests \
-only-testing:ChatClientKitTests/SerializationIdempotencyTests \
-only-testing:ChatClientKitTests/AnthropicStreamEventDecodingTests \
-only-testing:ChatClientKitTests/ProviderURLTests \
-only-testing:ChatClientKitTests/ChatCompletionChunkDecodingTests
live-integration-tests:
name: Live Integration Tests
runs-on: macos-15
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
env:
DEEPSEEK_API_KEY: ${{ secrets.DEEPSEEK_API_KEY }}
MOONSHOT_API_KEY: ${{ secrets.MOONSHOT_API_KEY }}
OPENROUTER_API_KEY: ${{ secrets.OPENROUTER_API_KEY }}
ANTHROPIC_API_KEY: ${{ secrets.ANTHROPIC_API_KEY }}
MISTRAL_API_KEY: ${{ secrets.MISTRAL_API_KEY }}
CEREBRAS_API_KEY: ${{ secrets.CEREBRAS_API_KEY }}
steps:
- uses: actions/checkout@v4
- name: Select Xcode
run: sudo xcode-select -s /Applications/Xcode_16.2.app
- name: Build and run live integration tests
run: |
xcodebuild test \
-scheme ChatClientKitTests \
-destination 'platform=iOS Simulator,name=iPhone 16,OS=latest' \
-skipPackagePluginValidation \
-only-testing:ChatClientKitTests/DeepSeekLiveTests \
-only-testing:ChatClientKitTests/KimiLiveTests \
-only-testing:ChatClientKitTests/OpenRouterLiveTests \
-only-testing:ChatClientKitTests/MistralLiveTests \
-only-testing:ChatClientKitTests/CerebrasLiveTests \
-only-testing:ChatClientKitTests/AnthropicLiveTests