-
Notifications
You must be signed in to change notification settings - Fork 730
146 lines (140 loc) · 6.72 KB
/
pytest_package.yml
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Pytest Camel package
on:
push:
branches: [ "master", "qa" ]
pull_request:
branches: [ "master", "qa" ]
permissions:
contents: read
jobs:
pytest_package_fast_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python environment and install dependencies
uses: ./.github/actions/camel_install
with:
python-version: "3.10"
- name: Run pytest
env:
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}"
SEARCH_ENGINE_ID: "${{ secrets.SEARCH_ENGINE_ID }}"
OPENWEATHERMAP_API_KEY: "${{ secrets.OPENWEATHERMAP_API_KEY }}"
ANTHROPIC_API_KEY: "${{ secrets.ANTHROPIC_API_KEY }}"
GROQ_API_KEY: "${{ secrets.GROQ_API_KEY }}"
COHERE_API_KEY: "${{ secrets.COHERE_API_KEY }}"
NVIDIA_API_BASE_URL: "${{ secrets.NVIDIA_API_BASE_URL }}"
NVIDIA_API_KEY: "${{ secrets.NVIDIA_API_KEY }}"
ZHIPUAI_API_BASE_URL: "${{ secrets.ZHIPUAI_API_BASE_URL }}"
ZHIPUAI_API_KEY: "${{ secrets.ZHIPUAI_API_KEY }}"
HF_TOKEN: "${{ secrets.HF_TOKEN }}"
AZURE_OPENAI_API_KEY: "to-be-filled"
AZURE_API_VERSION: "to-be-filled"
AZURE_DEPLOYMENT_NAME: "to-be-filled"
AZURE_OPENAI_BASE_URL: "https://camel.openai.azure.com/"
MISTRAL_API_KEY: "${{ secrets.MISTRAL_API_KEY }}"
REKA_API_KEY: "${{ secrets.REKA_API_KEY }}"
NEO4J_URI: "${{ secrets.NEO4J_URI }}"
NEO4J_USERNAME: "${{ secrets.NEO4J_USERNAME }}"
NEO4J_PASSWORD: "${{ secrets.NEO4J_PASSWORD }}"
FIRECRAWL_API_KEY: "${{ secrets.FIRECRAWL_API_KEY }}"
ASKNEWS_CLIENT_ID: "${{ secrets.ASKNEWS_CLIENT_ID }}"
ASKNEWS_CLIENT_SECRET: "${{ secrets.ASKNEWS_CLIENT_SECRET }}"
CHUNKR_API_KEY: "${{ secrets.CHUNKR_API_KEY }}"
MESHY_API_KEY: "${{ secrets.MESHY_API_KEY }}"
YI_API_KEY: "${{ secrets.YI_API_KEY }}"
TOGETHER_API_KEY: "${{ secrets.TOGETHER_API_KEY }}"
SAMBA_API_KEY: "${{ secrets.SAMBA_API_KEY }}"
QWEN_API_KEY: "${{ secrets.QWEN_API_KEY }}"
GEMINI_API_KEY: "${{ secrets.GEMINI_API_KEY }}"
DEEPSEEK_API_KEY: "${{ secrets.DEEPSEEK_API_KEY }}"
run: poetry run pytest --fast-test-mode test/
pytest_package_llm_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python environment and install dependencies
uses: ./.github/actions/camel_install
with:
python-version: "3.10"
- name: Run pytest
env:
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}"
SEARCH_ENGINE_ID: "${{ secrets.SEARCH_ENGINE_ID }}"
OPENWEATHERMAP_API_KEY: "${{ secrets.OPENWEATHERMAP_API_KEY }}"
ANTHROPIC_API_KEY: "${{ secrets.ANTHROPIC_API_KEY }}"
GROQ_API_KEY: "${{ secrets.GROQ_API_KEY }}"
COHERE_API_KEY: "${{ secrets.COHERE_API_KEY }}"
NVIDIA_API_BASE_URL: "${{ secrets.NVIDIA_API_BASE_URL }}"
NVIDIA_API_KEY: "${{ secrets.NVIDIA_API_KEY }}"
ZHIPUAI_API_BASE_URL: "${{ secrets.ZHIPUAI_API_BASE_URL }}"
ZHIPUAI_API_KEY: "${{ secrets.ZHIPUAI_API_KEY }}"
HF_TOKEN: "${{ secrets.HF_TOKEN }}"
AZURE_OPENAI_API_KEY: "to-be-filled"
AZURE_API_VERSION: "to-be-filled"
AZURE_DEPLOYMENT_NAME: "to-be-filled"
AZURE_OPENAI_BASE_URL: "https://camel.openai.azure.com/"
MISTRAL_API_KEY: "${{ secrets.MISTRAL_API_KEY }}"
REKA_API_KEY: "${{ secrets.REKA_API_KEY }}"
NEO4J_URI: "${{ secrets.NEO4J_URI }}"
NEO4J_USERNAME: "${{ secrets.NEO4J_USERNAME }}"
NEO4J_PASSWORD: "${{ secrets.NEO4J_PASSWORD }}"
FIRECRAWL_API_KEY: "${{ secrets.FIRECRAWL_API_KEY }}"
ASKNEWS_CLIENT_ID: "${{ secrets.ASKNEWS_CLIENT_ID }}"
ASKNEWS_CLIENT_SECRET: "${{ secrets.ASKNEWS_CLIENT_SECRET }}"
CHUNKR_API_KEY: "${{ secrets.CHUNKR_API_KEY }}"
MESHY_API_KEY: "${{ secrets.MESHY_API_KEY }}"
YI_API_KEY: "${{ secrets.YI_API_KEY }}"
TOGETHER_API_KEY: "${{ secrets.TOGETHER_API_KEY }}"
SAMBA_API_KEY: "${{ secrets.SAMBA_API_KEY }}"
QWEN_API_KEY: "${{ secrets.QWEN_API_KEY }}"
GEMINI_API_KEY: "${{ secrets.GEMINI_API_KEY }}"
DEEPSEEK_API_KEY: "${{ secrets.DEEPSEEK_API_KEY }}"
run: poetry run pytest --llm-test-only test/
pytest_package_very_slow_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python environment and install dependencies
uses: ./.github/actions/camel_install
with:
python-version: "3.10"
- name: Run pytest
env:
OPENAI_API_KEY: "${{ secrets.OPENAI_API_KEY }}"
GOOGLE_API_KEY: "${{ secrets.GOOGLE_API_KEY }}"
SEARCH_ENGINE_ID: "${{ secrets.SEARCH_ENGINE_ID }}"
OPENWEATHERMAP_API_KEY: "${{ secrets.OPENWEATHERMAP_API_KEY }}"
ANTHROPIC_API_KEY: "${{ secrets.ANTHROPIC_API_KEY }}"
GROQ_API_KEY: "${{ secrets.GROQ_API_KEY }}"
COHERE_API_KEY: "${{ secrets.COHERE_API_KEY }}"
NVIDIA_API_BASE_URL: "${{ secrets.NVIDIA_API_BASE_URL }}"
NVIDIA_API_KEY: "${{ secrets.NVIDIA_API_KEY }}"
ZHIPUAI_API_BASE_URL: "${{ secrets.ZHIPUAI_API_BASE_URL }}"
ZHIPUAI_API_KEY: "${{ secrets.ZHIPUAI_API_KEY }}"
HF_TOKEN: "${{ secrets.HF_TOKEN }}"
AZURE_OPENAI_API_KEY: ${{ secrets.AZURE_OPENAI_API_KEY }}"
AZURE_API_VERSION: ${{ secrets.AZURE_API_VERSION }}"
AZURE_DEPLOYMENT_NAME: ${{ secrets.AZURE_DEPLOYMENT_NAME }}"
AZURE_OPENAI_BASE_URL: ${{ secrets.AZURE_OPENAI_BASE_URL }}"
MISTRAL_API_KEY: "${{ secrets.MISTRAL_API_KEY }}"
REKA_API_KEY: "${{ secrets.REKA_API_KEY }}"
NEO4J_URI: "${{ secrets.NEO4J_URI }}"
NEO4J_USERNAME: "${{ secrets.NEO4J_USERNAME }}"
NEO4J_PASSWORD: "${{ secrets.NEO4J_PASSWORD }}"
FIRECRAWL_API_KEY: "${{ secrets.FIRECRAWL_API_KEY }}"
ASKNEWS_CLIENT_ID: "${{ secrets.ASKNEWS_CLIENT_ID }}"
ASKNEWS_CLIENT_SECRET: "${{ secrets.ASKNEWS_CLIENT_SECRET }}"
CHUNKR_API_KEY: "${{ secrets.CHUNKR_API_KEY }}"
MESHY_API_KEY: "${{ secrets.MESHY_API_KEY }}"
YI_API_KEY: "${{ secrets.YI_API_KEY }}"
TOGETHER_API_KEY: "${{ secrets.TOGETHER_API_KEY }}"
SAMBA_API_KEY: "${{ secrets.SAMBA_API_KEY }}"
QWEN_API_KEY: "${{ secrets.QWEN_API_KEY }}"
GEMINI_API_KEY: "${{ secrets.GEMINI_API_KEY }}"
DEEPSEEK_API_KEY: "${{ secrets.DEEPSEEK_API_KEY }}"
run: poetry run pytest --very-slow-test-only test/