diff --git a/.github/workflows/ci-cd.yaml b/.github/workflows/ci-cd.yaml index 570ede2..6cf14b7 100644 --- a/.github/workflows/ci-cd.yaml +++ b/.github/workflows/ci-cd.yaml @@ -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