Skip to content

<BACK> - more protection for gemini output. #12

<BACK> - more protection for gemini output.

<BACK> - more protection for gemini output. #12

Workflow file for this run

name: Backend CI
on:
push:
branches: [ main ]
paths:
- backend/**
- test/**
pull_request:
branches: [ main ]
workflow_dispatch:
env:
GEMINI_API_KEY: ${{ secrets.GEMINI_API_KEY }}
MONGO_URI: ${{ secrets.MONGO_URI }}
jobs:
test:
runs-on: ubuntu-latest
steps:
# 1️⃣ Checkout the repo
- name: Checkout code
uses: actions/checkout@v4
# 2️⃣ Set up Python
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
# 3️⃣ Install dependencies
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r backend/requirements.txt
pip install pytest httpx
# 4️⃣ Run tests
- name: Run tests
run: |
pytest test/ --maxfail=1 --disable-warnings -v -s