Skip to content

Update ci-cd.yaml

Update ci-cd.yaml #6

Workflow file for this run

name: Run Tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: Test FastAPI Application
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- name: Checkout Repository
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set Google API Key
env:
GOOGLE_API_KEY: ${{ evn.GOOGLE_API_KEY }}

Check failure on line 35 in .github/workflows/ci-cd.yaml

View workflow run for this annotation

GitHub Actions / Run Tests

Invalid workflow file

The workflow is not valid. .github/workflows/ci-cd.yaml (Line: 35, Col: 27): Unrecognized named-value: 'evn'. Located at position 1 within expression: evn.GOOGLE_API_KEY .github/workflows/ci-cd.yaml (Line: 37, Col: 27): Unrecognized named-value: 'evn'. Located at position 1 within expression: evn.MONGO_USERNAME
HUGGINGFACE_API_KEY: ${{ env.HUGGINGFACE_API_KEY }}
MONGO_USERNAME: ${{ evn.MONGO_USERNAME }}
MONGO_PASSWORD: ${{ evn.MONGO_PASSWORD }}
MONGO_DBNAME: ${{ evn.MONGO_DBNAME }}
MONGO_COLLECTION: ${{ evn.MONGO_COLLECTION }}
run: |
echo "Google API Key: Success!!!"
- name: Run Tests
run: |
pytest test_main.py