Skip to content

Commit

Permalink
Merge pull request #18 from IDinsight/release-jan-2025
Browse files Browse the repository at this point in the history
Pulling new AAQ changes
  • Loading branch information
lickem22 authored Jan 26, 2025
2 parents 465fbd6 + cbbd2fd commit 396cb9f
Show file tree
Hide file tree
Showing 76 changed files with 5,146 additions and 2,218 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/deploy_gcp_core_backend.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ jobs:
id: "secrets"
uses: "google-github-actions/get-secretmanager-secrets@v2"
with:
secrets: |- #pragma: allowlist secret
domain:${{ secrets.GCP_PROJECT_ID }}/${{ env.RESOURCE_PREFIX }}-domain
secrets: |-
domain:${{ secrets.GCP_PROJECT_ID }}/${{ env.RESOURCE_PREFIX }}-domain
jwt-secret:${{ secrets.GCP_PROJECT_ID }}/${{ env.RESOURCE_PREFIX }}-jwt-secret
google-login-client-id:${{ secrets.GCP_PROJECT_ID }}/${{ env.RESOURCE_PREFIX }}-google-login-client-id
langfuse-secret-key:${{ secrets.GCP_PROJECT_ID }}/${{ env.RESOURCE_PREFIX }}-langfuse-secret-key
Expand All @@ -70,8 +70,6 @@ jobs:
admin-password:${{ secrets.GCP_PROJECT_ID }}/${{ env.RESOURCE_PREFIX }}-admin-password
admin-api-key:${{ secrets.GCP_PROJECT_ID }}/${{ env.RESOURCE_PREFIX }}-admin-api-key
gcp-credential-json:${{ secrets.GCP_PROJECT_ID }}/${{ env.RESOURCE_PREFIX }}-gcp-credential-json
litellm-endpoint:${{ secrets.GCP_PROJECT_ID }}/${{ env.RESOURCE_PREFIX }}-litellm-endpoint
litellm-api-key:${{ secrets.GCP_PROJECT_ID }}/${{ env.RESOURCE_PREFIX }}-litellm-api-key
- name: Copy GCP credentials JSON
working-directory: deployment/docker-compose
Expand Down
19 changes: 8 additions & 11 deletions .github/workflows/test_speech_api.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,14 @@ on:
- "**"
paths:
- "optional_components/speech_api/**"
- ".github/workflows/test_speech_api.yaml"

env:
PREFERRED_MODEL: base
WHISPER_MODEL_DIR: whisper_models
PIPER_MODELS_DIR: models/piper
ENG_MODEL_NAME: en_US-arctic-medium.onnx
SWAHILI_MODEL_NAME: sw_CD-lanfrica-medium.onnx

jobs:
test:
Expand All @@ -31,20 +35,13 @@ jobs:
with:
python-version: "3.10"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r optional_components/speech_api/requirements.txt --extra-index-url https://download.pytorch.org/whl/cpu
python -m pip install -r requirements-dev.txt
python -m pip install pytest
- name: Run Speech Unit Tests
env:
PREFERRED_MODEL: ${{ env.PREFERRED_MODEL }}
WHISPER_MODEL_DIR: ${{ env.WHISPER_MODEL_DIR }}
PIPER_MODELS_DIR: ${{ env.PIPER_MODELS_DIR }}
ENG_MODEL_NAME: ${{ env.ENG_MODEL_NAME }}
SWAHILI_MODEL_NAME: ${{ env.SWAHILI_MODEL_NAME }}
run: |
mkdir -p $WHISPER_MODEL_DIR
cd optional_components/speech_api
python -m pytest
cd ../..
rm -rf $WHISPER_MODEL_DIR
make tests
12 changes: 6 additions & 6 deletions .secrets.baseline
Original file line number Diff line number Diff line change
Expand Up @@ -369,14 +369,14 @@
"filename": "core_backend/tests/api/test_dashboard_overview.py",
"hashed_secret": "233243ef95e736679cb1d5664a4c71ba89c10664",
"is_verified": false,
"line_number": 154
"line_number": 155
},
{
"type": "Secret Keyword",
"filename": "core_backend/tests/api/test_dashboard_overview.py",
"hashed_secret": "6367c48dd193d56ea7b0baad25b19455e529f5ee",
"is_verified": false,
"line_number": 290
"line_number": 291
}
],
"core_backend/tests/api/test_dashboard_performance.py": [
Expand All @@ -403,14 +403,14 @@
"filename": "core_backend/tests/api/test_question_answer.py",
"hashed_secret": "1d2be5ef28a76e2207456e7eceabe1219305e43d",
"is_verified": false,
"line_number": 295
"line_number": 294
},
{
"type": "Secret Keyword",
"filename": "core_backend/tests/api/test_question_answer.py",
"hashed_secret": "6367c48dd193d56ea7b0baad25b19455e529f5ee",
"is_verified": false,
"line_number": 648
"line_number": 659
}
],
"core_backend/tests/api/test_user_tools.py": [
Expand All @@ -419,7 +419,7 @@
"filename": "core_backend/tests/api/test_user_tools.py",
"hashed_secret": "5baa61e4c9b93f3f0682250b6cf8331b7ee68fd8",
"is_verified": false,
"line_number": 47
"line_number": 70
}
],
"core_backend/tests/rails/test_language_identification.py": [
Expand Down Expand Up @@ -550,5 +550,5 @@
}
]
},
"generated_at": "2024-10-29T14:53:14Z"
"generated_at": "2025-01-24T13:16:16Z"
}
Loading

0 comments on commit 396cb9f

Please sign in to comment.