Skip to content

Merge pull request #1659 from SatyamPandey-07/feature/ai-crop-diagnos… #1253

Merge pull request #1659 from SatyamPandey-07/feature/ai-crop-diagnos…

Merge pull request #1659 from SatyamPandey-07/feature/ai-crop-diagnos… #1253

Workflow file for this run

name: Python Test Suite
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov
- name: Run backend tests with coverage
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
FIREBASE_API_KEY: test_key
FIREBASE_AUTH_DOMAIN: test.firebaseapp.com
FIREBASE_PROJECT_ID: test-project
FIREBASE_STORAGE_BUCKET: test.appspot.com
FIREBASE_MESSAGING_SENDER_ID: "123456"
FIREBASE_APP_ID: "1:123:web:abc"
FIREBASE_MEASUREMENT_ID: G-TEST
run: |
pytest tests/ -v --cov=. --cov-report=term-missing
- name: Upload coverage report
uses: codecov/codecov-action@v3
if: always()
with:
fail_ci_if_error: false