Skip to content

Commit

Permalink
fixed workflow file_4
Browse files Browse the repository at this point in the history
  • Loading branch information
ngupta10 committed Jan 11, 2024
1 parent b43c46a commit 4511842
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,18 @@ jobs:
project_id: "protocolstreams-ai"
service_account_key: "${{ secrets.GOOGLE_APPLICATION_CREDENTIALS }}"
export_default_credentials: true
- name: Install curl
run: |
sudo apt-get update
sudo apt-get install curl -y
- name: Download AI Model from Google Drive
run: |
access_token="${{ secrets.GOOGLE_DRIVE_ACCESS_TOKEN }}"
file_id="${{ secrets.GOOGLE_DRIVE_FILE_ID }}"
file_name="./tests/llama-2-7b-chat.Q5_K_S.gguf"
curl -H "Authorization: Bearer $access_token" "https://www.googleapis.com/drive/v3/files/$file_id?alt=media" -o "$file_name"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down Expand Up @@ -117,18 +129,6 @@ jobs:
run: |
python -m spacy download en_core_web_lg
- name: Install curl
run: |
sudo apt-get update
sudo apt-get install curl -y
- name: Download AI Model from Google Drive
run: |
access_token="${{ secrets.GOOGLE_DRIVE_ACCESS_TOKEN }}"
file_id="${{ secrets.GOOGLE_DRIVE_FILE_ID }}"
file_name="./tests/llama-2-7b-chat.Q5_K_S.gguf"
!curl -H "Authorization: Bearer $access_token" "https://www.googleapis.com/drive/v3/files/$file_id?alt=media" -o "$file_name"
- name: Test Code Coverage
run: pytest --cov=querent -vv --durations=0
env:
Expand Down

0 comments on commit 4511842

Please sign in to comment.