Skip to content

Commit

Permalink
Merge pull request #67 from ansari-project/feat/workflow-exec
Browse files Browse the repository at this point in the history
Quran.com integration
  • Loading branch information
waleedkadous authored Nov 7, 2024
2 parents a76309b + aa5fdc0 commit 2aa47e6
Show file tree
Hide file tree
Showing 14 changed files with 840 additions and 190 deletions.
4 changes: 1 addition & 3 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,7 @@ export ORIGINS="https://beta.ansari.chat,http://beta.ansari.chat,https://ansari.

# Vectara search engine configuration
export PGPASSWORD="" # Password for PostgreSQL database
export VECTARA_AUTH_TOKEN="" # Authentication token for Vectara API
export VECTARA_CUSTOMER_ID="" # Customer ID for Vectara service
export VECTARA_CORPUS_ID="" # Corpus ID for Vectara service
export VECTARA_API_KEY="" # Authentication token for Vectara API

# Directory for storing templates
export template_dir="." # Directory path for templates
Expand Down
19 changes: 12 additions & 7 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,10 @@ jobs:
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
KALEMAT_API_KEY: ${{ secrets.KALEMAT_API_KEY }}
VECTARA_AUTH_TOKEN: ${{ secrets.VECTARA_AUTH_TOKEN }}
VECTARA_CUSTOMER_ID: ${{ secrets.VECTARA_CUSTOMER_ID }}
VECTARA_CORPUS_ID: ${{ secrets.VECTARA_CORPUS_ID }}
VECTARA_API_KEY: ${{ secrets.VECTARA_API_KEY }}
MAWSUAH_VECTARA_CORPUS_KEY: ${{ secrets.MAWSUAH_VECTARA_CORPUS_KEY }}
TAFSIR_VECTARA_CORPUS_KEY: ${{ secrets.TAFSIR_VECTARA_CORPUS_KEY }}
QURAN_DOT_COM_API_KEY: ${{ secrets.QURAN_DOT_COM_API_KEY }}
WHATSAPP_RECIPIENT_WAID: ${{ secrets.WHATSAPP_RECIPIENT_WAID }}
WHATSAPP_API_VERSION: ${{ secrets.WHATSAPP_API_VERSION }}
WHATSAPP_BUSINESS_PHONE_NUMBER_ID: ${{ secrets.WHATSAPP_BUSINESS_PHONE_NUMBER_ID }}
Expand All @@ -36,7 +37,7 @@ jobs:
POSTGRES_PASSWORD: postgres
PGPASSWORD: postgres
ports:
- "5432:5432"
- "5433:5432"
options: >-
--health-cmd pg_isready
--health-interval 10s
Expand All @@ -48,11 +49,15 @@ jobs:
- name: Check out repository code
uses: actions/checkout@v4

- name: Install uv
run: |
pip install uv
# TODO(abdullah): create a venv using uv
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest pytest-asyncio pytest-cov
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
uv pip install --system flake8 pytest pytest-asyncio pytest-cov
if [ -f requirements.txt ]; then uv pip install --system -r requirements.txt; fi
- name: Install PostgreSQL client
run: |
apt-get update
Expand Down
Loading

0 comments on commit 2aa47e6

Please sign in to comment.