Skip to content

[GSSoC'26] Add pytest fixtures and CI workflow for proper test suite #1

[GSSoC'26] Add pytest fixtures and CI workflow for proper test suite

[GSSoC'26] Add pytest fixtures and CI workflow for proper test suite #1

Workflow file for this run

name: CI – Run Tests
on:
push:
branches: ["main", "master"]
pull_request:
branches: ["main", "master"]
jobs:
test:
name: pytest
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
cache: "pip"
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -r backend/requirements.txt
pip install pytest pytest-cov
- name: Run pytest
env:
OPENAI_API_KEY: "ci-fake-key"
GROQ_API_KEY: "ci-fake-key"
GEMINI_API_KEY: "ci-fake-key"
FLASK_ENV: testing
PYTHONPATH: ".:backend"
run: |
python -m pytest tests/ \
--ignore=tests/test_llm.py \
--ignore=tests/test_mood_improvements.py \
-v --tb=short --cov=backend