-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathazure-pipelines.yml
53 lines (45 loc) · 1.35 KB
/
azure-pipelines.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
trigger:
- main # Replace with your default branch name
pool:
vmImage: 'ubuntu-latest'
steps:
# Step 1: Check out the medLLM repository
- task: UsePythonVersion@0
inputs:
versionSpec: '3.9'
addToPath: true
- task: Checkout@1
# Step 2: Install dependencies for medLLM
- script: |
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
displayName: 'Install dependencies for medLLM'
# Step 4: Clone BreakYourLLM repository
- script: |
git clone https://github.com/ModelPulse/BreakYourLLM.git
cd BreakYourLLM
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
displayName: 'Clone and setup BreakYourLLM'
# Step 5: Replace configurations in BreakYourLLM
- script: |
cp medLLM/config/user_config1.json BreakYourLLM/config/config1.json
cp medLLM/config/user_config2.json BreakYourLLM/config/config2.json
displayName: 'Replace BreakYourLLM configurations'
# Step 6: Run main.py in BreakYourLLM
- script: |
cd BreakYourLLM
source venv/bin/activate
python main.py
displayName: 'Run BreakYourLLM main.py'
# Step 7: Check Results
- script: |
if grep -q '"status": "pass"' BreakYourLLM/results/stage5_metric_evaluation.json; then
echo "Build Passed"
else
echo "Build Failed"
exit 1
fi
displayName: 'Check results of BreakYourLLM'