Skip to content

Commit

Permalink
Update ci-cd.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
AquibPy committed Mar 13, 2024
1 parent d9b656f commit cfbd0b1
Showing 1 changed file with 24 additions and 13 deletions.
37 changes: 24 additions & 13 deletions .github/workflows/ci-cd.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,30 @@ jobs:
runs-on: ubuntu-latest

steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Checkout Repository
uses: actions/checkout@v2

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.8'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
pytest test_main.py
- name: Set Google API Key
env:
GOOGLE_API_KEY: ${{ secrets.GOOGLE_API_KEY }}
HUGGINGFACE_API_KEY: ${{ secrets.HUGGINGFACE_API_KEY }}
MONGO_USERNAME: ${{ secrets.MONGO_USERNAME }}
MONGO_PASSWORD: ${{ secrets.MONGO_PASSWORD }}
MONGO_DBNAME: ${{ secrets.MONGO_DBNAME }}
MONGO_COLLECTION: ${{ secrets.MONGO_COLLECTION }}
run: |
echo "Google API Key: Succesfull!!!"
- name: Run Tests
run: |
pytest test_main.py

0 comments on commit cfbd0b1

Please sign in to comment.