Skip to content

Update search_router.py #17

Update search_router.py

Update search_router.py #17

Workflow file for this run

name: CI Pipeline
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov ruff
- name: Auto-fix lint issues (ruff)
run: |
ruff check . --fix || echo "Lint auto-fixed"
- name: Run Linting (ruff)
run: |
ruff check .
- name: Run Tests with Coverage
run: |
pytest --cov=app tests/
- name: Upload Coverage Report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: htmlcov/