generated from childmindresearch/template-python-repository
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yaml
61 lines (53 loc) · 1.41 KB
/
azure-pipelines.yaml
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
trigger:
- main
pr:
- main
pool:
vmImage: ubuntu-latest
services:
languagetool:
image: erikvl87/languagetool:6.5
ports:
- 8010:8010
cloai:
image: cmidair/cloai-service:main
ports:
- 8000:8000
env:
AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID)
AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY)
CONFIG_JSON: |
{
"clients": {
"sonnet-3.5-v2": {
"type": "bedrock-anthropic",
"model": "anthropic.claude-3-5-sonnet-20241022-v2:0",
"aws_access_key": "$(AWS_ACCESS_KEY_ID)",
"aws_secret_key": "$(AWS_SECRET_ACCESS_KEY)",
"region": "us-west-2"
}
}
}
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.11'
addToPath: true
- script: |
python -m pip install uv
uv sync
displayName: Install dependencies
- script: uv run python tests/integration/azure_test_intakes.py
displayName: Run test_intake.py
env:
SURVEY_IDS: $(SURVEY_IDS)
REDCAP_API_TOKEN: $(REDCAP_API_TOKEN)
AWS_ACCESS_KEY_ID: $(AWS_ACCESS_KEY_ID)
AWS_SECRET_ACCESS_KEY: $(AWS_SECRET_ACCESS_KEY)
LANGUAGE_TOOL_URL: http://localhost:8010/v2
AZURE_BLOB_CONNECTION_STRING: unused
AZURE_OPENAI_API_KEY: unused
AZURE_OPENAI_LLM_DEPLOYMENT: unused
AZURE_OPENAI_ENDPOINT: unused
CLOAI_SERVICE_URL: http://localhost:8000/v1
CLOAI_MODEL: sonnet-3.5-v2